gwenn

Results 447 comments of gwenn

Currently, the only place where you access the `LineBuffer` is [here](https://github.com/kkawakam/rustyline/blob/master/src/completion.rs#L92-L95). => https://docs.rs/rustyline/latest/rustyline/completion/trait.Completer.html#method.update We may add something like replxx [modify_callback](https://github.com/AmokHuginnsson/replxx/blob/master/include/replxx.h#L235-L255).

As explain in `highlight_char`, rustyline must refresh the whole buffer at each key stroke if set to `true`. You can can try to input a very large multiline input buffer...

I hope that one day `rustyline` will have the logic to redraw only the dirty cells / lines like [textmode](https://github.com/doy/textmode) and change the default behaviour of `highlight_char`.

Indeed, I had to introduce this variant for the SQLite based history: https://github.com/kkawakam/rustyline/blob/4a7dfe90864638c2c8e68523bddc8949586323f0/src/error.rs#L33-L34

Just for reference: - https://docs.rs/termwiz/latest/termwiz/lineedit/trait.History.html (no error) - https://docs.rs/reedline/latest/reedline/trait.History.html (only https://docs.rs/reedline/latest/reedline/enum.ReedlineErrorVariants.html) As far as I know, other rust libraries doesn't support custom `History` impl.

Cannot reproduce locally: ```sh % cargo run --example minimal > line1 line2 line3 line4 line5 Line: line1 line2 line3 line4 line5 > ``` I tried with unix, mac, dos file...

Sorry but your PR is fixing an edge case while impacting the common case.

@SalHe could you please try #761 ? Or just [disable bracketed paster](https://docs.rs/rustyline/latest/rustyline/config/struct.Builder.html#method.bracketed_paste)

#690 reveals that `rustyline` doesn't behave correctly with `expect` / `pexpect`. So maybe we should introduce a feature X (for testing) that deactivates input buffering ? And maybe when this...