summaryrefslogtreecommitdiffstats
path: root/struct.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-09-30 20:30:31 -0700
committerKaz Kylheku <kaz@kylheku.com>2016-09-30 20:30:31 -0700
commit6fc1970fad8ed8c25cbbf8273628257d25317d8a (patch)
treebc26aab54fe549ed4300d1ee0c54eae8757e69b7 /struct.c
parentd5ab16603e4d808baf21fae183bce034e72fe40f (diff)
downloadtxr-6fc1970fad8ed8c25cbbf8273628257d25317d8a.tar.gz
txr-6fc1970fad8ed8c25cbbf8273628257d25317d8a.tar.bz2
txr-6fc1970fad8ed8c25cbbf8273628257d25317d8a.zip
linenoise: bugfix: handle ESC in extended command.
If the user types Ctrl-X and then an arrow key, we don't want garbage. We let an ESC received in Ctrl-X extended command mode to be processed normally and cancel that mode. * linenoise.c (edit): Bypass the extended command switch if the character is ESC. Then down below in the ESC case of the regular command switch, clear extended mode.
Diffstat (limited to 'struct.c')
0 files changed, 0 insertions, 0 deletions