From 32f5d3d8c16b4f3a11fa39c0ee378d72336ba853 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 3 Sep 2015 17:52:40 +0100 Subject: 36416: ^C in getzlequery() just aborts query. Also logical but possibly invisible fix for error propagated back from listing interface. --- Src/Zle/zle_utils.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Src/Zle/zle_utils.c') diff --git a/Src/Zle/zle_utils.c b/Src/Zle/zle_utils.c index d1d320613..9751f7a1f 100644 --- a/Src/Zle/zle_utils.c +++ b/Src/Zle/zle_utils.c @@ -1183,6 +1183,11 @@ getzlequery(void) /* get a character from the tty and interpret it */ c = getfullchar(0); + /* + * We'll interpret an interruption here as only interrupting the + * query, not the line editor. + */ + errflag &= ~ERRFLAG_INT; if (c == ZWC('\t')) c = ZWC('y'); else if (ZC_icntrl(c) || c == ZLEEOF) -- cgit 1.4.1