From de3c3e1d083d4fde847505b4626467e2cb8d4cd6 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Thu, 31 Dec 2015 05:23:29 -0800 Subject: 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. --- linenoise/linenoise.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'linenoise/linenoise.c') 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; -- cgit v1.2.3