diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-09-25 22:53:18 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-09-25 22:53:18 -0700 |
commit | 58f014b1a71c0052668863af4ba84c92c4916b98 (patch) | |
tree | 12a075bc66f5f050b71f785fde79139dae04e63e /parser.l | |
parent | ddebbad496cdd19c6249211c8f00861161496124 (diff) | |
download | txr-58f014b1a71c0052668863af4ba84c92c4916b98.tar.gz txr-58f014b1a71c0052668863af4ba84c92c4916b98.tar.bz2 txr-58f014b1a71c0052668863af4ba84c92c4916b98.zip |
linenoise: fix broken move-to-end on Enter.
The switch to Ctr-A/Ctrl-E within a logical line
breaks when the edit_move_end function is relied upon
to go to the end of the buffer.
* linenoise/linenoise.c (edit_move_home): Restored
to original behavior.
(edit_move_sol): New static function that hosts new
behavior of edit_move_home: calls edit_move_home in
single-line mode, or implements move within logical
line in multi-line mode.
(edit_move_end): Restored to original behavior.
(edit_move_eol): New static function that hosts new
behavior of edit_move_end: calls edit_move_end in
single-line mode, or implements move within logical
line in multi-line mode.
(edit): Call edit_move_sol instead of edit_move_home,
and in editing functions onyl, call edit_move_eol
instead of edit_move_end.
Diffstat (limited to 'parser.l')
0 files changed, 0 insertions, 0 deletions