From 1d8b5285226afba4f1ef9030cf862c14b975c284 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Fri, 15 Jan 2016 12:49:42 +0000 Subject: 37643: Reset interrupt on key input in menu selection. We don't need to propagate the interrupt further as the interrupt causes the key to be empty, which will exit the widget. We need to reset the condition as zrefresh() is now more sensitive to errors since 36416 / 32f5d3d8. --- Src/Zle/complist.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Src/Zle/complist.c') diff --git a/Src/Zle/complist.c b/Src/Zle/complist.c index 29aaee82a..0ccb88505 100644 --- a/Src/Zle/complist.c +++ b/Src/Zle/complist.c @@ -2584,6 +2584,12 @@ domenuselect(Hookdef dummy, Chdata dat) if (!do_last_key) { zmult = 1; cmd = getkeycmd(); + /* + * On interrupt, we'll exit due to cmd being empty. + * Don't propagate the interrupt any further, which + * can screw up redrawing. + */ + errflag &= ~ERRFLAG_INT; if (mtab_been_reallocated) { do_last_key = 1; continue; -- cgit 1.4.1