kkawakam / rustyline

Readline Implementation in Rust
https://crates.io/crates/rustyline/
MIT License
1.52k stars 175 forks source link

Paste `<cmd-v>` does not put cursor at end of line #732

Open segeljakt opened 11 months ago

segeljakt commented 11 months ago

If I have a REPL with my cursor here:

>> |

and I press <cmd-v> (on macOS) with the text foo in my clipboard, I get:

>> fo|o

but I would expect this:

>> foo|

Is it a bug or do I need to configure something in Rustyline to achieve this behaviour?

gwenn commented 11 months ago

Cannot reproduce:

cargo run --example minimal
> foo