diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-09-20 18:56:07 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-09-20 18:56:07 -0700 |
commit | 0eed0b1cbcf301c594020fb4bbe9a39c3f94a8a6 (patch) | |
tree | 55f7214542c03a77e8ad683663b2169a9eb27a2a /linenoise/LICENSE | |
parent | 18f016a0e577982d9d78ec7133b3b53ff218da93 (diff) | |
download | txr-0eed0b1cbcf301c594020fb4bbe9a39c3f94a8a6.tar.gz txr-0eed0b1cbcf301c594020fb4bbe9a39c3f94a8a6.tar.bz2 txr-0eed0b1cbcf301c594020fb4bbe9a39c3f94a8a6.zip |
linenoise: move to end in mlmode on Ctrl-C, Ctrl-Z.
If we don't move the cursor to the end, then
the shell prompt (Ctrl-Z) or next REPL prompt (Ctrl-C)
comes in the middle of the previous input.
* linenoise/linenoise.c (edit): in multi-line mode,
move to end of input on Ctrl-C. On Ctrl-Z suspend,
do the same, but save and restore the position.
Diffstat (limited to 'linenoise/LICENSE')
0 files changed, 0 insertions, 0 deletions