diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-12-31 05:23:29 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-12-31 05:23:29 -0800 |
commit | de3c3e1d083d4fde847505b4626467e2cb8d4cd6 (patch) | |
tree | 17672b57febd6faa5d6dc0c64a35c9822c35cd71 | |
parent | 0707f8c438a67e379f6b34de02fe745defd18ea2 (diff) | |
download | txr-de3c3e1d083d4fde847505b4626467e2cb8d4cd6.tar.gz txr-de3c3e1d083d4fde847505b4626467e2cb8d4cd6.tar.bz2 txr-de3c3e1d083d4fde847505b4626467e2cb8d4cd6.zip |
linenoise: bugfix: Ctrl-X bails out of hist search
* linenoise/linenoise.c (history_search):
Add CTL('X') to set of characters which terminate
search and are processed again in the main editing
function, so that Ctrl-X commands work in search.
-rw-r--r-- | linenoise/linenoise.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linenoise/linenoise.c b/linenoise/linenoise.c index a9c68720..93f4bf6c 100644 --- a/linenoise/linenoise.c +++ b/linenoise/linenoise.c @@ -681,7 +681,7 @@ static int history_search(lino_t *l) case CTL('A'): case CTL('E'): case CTL('N'): case CTL('P'): case CTL('D'): case CTL('U'): case CTL('W'): case CTL('K'): - case CTL('T'): + case CTL('T'): case CTL('X'): case ESC: if (hi < l->history_len) l->history_index = l->history_len - hi - 1; |