Closed kamiyaa closed 1 year ago
Currently, only rustyline
can.
This change was introduced by #666
How does someone use rustyline::completion::Completer::update()
then?
You can implement update
.
But you are not supposed to use / call it!
Only rustyline
should call it.
Resolved. Was migrating from v9 to v12.
v9 code:
completer.update(line_buffer, pos, &my_string);
v12 code:
line_buffer.set_pos(pos);
line_buffer.kill_buffer(listener);
line_buffer.insert_str(pos, &my_string, listener);
line_buffer.move_end();
So it can be used in
rustyline::completion::Completer::update()
?