Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: ^C in zcalc causes cmdpop error
- X-seq: zsh-workers 35155
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: PATCH: ^C in zcalc causes cmdpop error
- Date: Fri, 15 May 2015 20:21:56 +0100
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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);
Messages sorted by:
Reverse Date,
Date,
Thread,
Author