From 21382e0b20c697e83d0bc903a5e17b75e5979995 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 1 Sep 2015 11:45:23 +0100 Subject: 36365: magic-space could delete the reset of the line. If we got a LEXERR, which didn't necessarily mean an actual error, just something the rather nasty ctxtlex() got confused by, we didn't scan the reset of the line. --- Src/Zle/zle_tricky.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Src/Zle/zle_tricky.c') diff --git a/Src/Zle/zle_tricky.c b/Src/Zle/zle_tricky.c index 97bdcc020..b1a6f9e7e 100644 --- a/Src/Zle/zle_tricky.c +++ b/Src/Zle/zle_tricky.c @@ -2812,6 +2812,8 @@ doexpandhist(void) do { ctxtlex(); } while (tok != ENDINPUT && tok != LEXERR); + if (tok == LEXERR) + lexstop = 0; while (!lexstop) hgetc(); /* We have to save errflags because it's reset in zcontext_restore. Since * -- cgit 1.4.1