* PATCH: ^C in zcalc causes cmdpop error
@ 2015-05-15 19:21 Peter Stephenson
0 siblings, 0 replies; only message in thread
From: Peter Stephenson @ 2015-05-15 19:21 UTC (permalink / raw)
To: Zsh hackers list
diff --git a/Src/lex.c b/Src/lex.c
index 5b6d3a6..841fb0b 100644
--- a/Src/lex.c
+++ b/Src/lex.c
@@ -1346,8 +1346,10 @@ gettokstr(int c, int sub)
}
brk:
if (errflag) {
- while(bct-- >= in_brace_param)
- cmdpop();
+ if (in_brace_param) {
+ while(bct-- >= in_brace_param)
+ cmdpop();
+ }
return LEXERR;
}
hungetc(c);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-05-15 19:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-15 19:21 PATCH: ^C in zcalc causes cmdpop error Peter Stephenson
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).