sl-sh-dev / sl-liner

Readline like line editor (fork of https://gitlab.redox-os.org/redox-os/liner).
MIT License
1 stars 0 forks source link

in vim using mode using multi key esc sequence overwrites paste buffer #14

Closed gpwclark closed 2 years ago

gpwclark commented 2 years ago

sl-liner added support for a paste buffer in vim mode. it is also possible to add another esc shortcut equivalent to the Esc key. Unfortunately using a key sequence of 2 chars (the max) goes into the buffer's current paste register erroneously and will be paste to the screen in normal more when using 'p' or 'P' keys. The user's paste buffer should not be overwritten when they switch from insert mode to normal mode with a multi-key escape sequence.