From 4508d25710de08793005923b1f91f5ae072f3945 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Fri, 17 Apr 2015 10:23:58 +0100 Subject: 34905: no parse error after keyboard interrupt. Handled generally, though only showing up in special nested cases. Also fix ZLE so it doesn't cancel the interrupt flag when not actually returning from a local keymap. --- Src/parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src/parse.c') diff --git a/Src/parse.c b/Src/parse.c index 0b54a904d..91a81e1ff 100644 --- a/Src/parse.c +++ b/Src/parse.c @@ -2419,7 +2419,7 @@ yyerror(int noerr) for (t0 = 0; t0 != 20; t0++) if (!t || !t[t0] || t[t0] == '\n') break; - if (!(histdone & HISTFLAG_NOEXEC)) { + if (!(histdone & HISTFLAG_NOEXEC) && !(errflag & ERRFLAG_INT)) { if (t0 == 20) zwarn("parse error near `%l...'", t, 20); else if (t0) -- cgit 1.4.1