aboutsummaryrefslogtreecommitdiff
path: root/Src
diff options
context:
space:
mode:
authorBarton E. Schaefer <schaefer@zsh.org>2015-03-27 11:54:55 -0700
committerBarton E. Schaefer <schaefer@zsh.org>2015-03-27 11:54:55 -0700
commitab4065623aa07a2bf74edcda62d29d02154779d8 (patch)
tree412f7fefc763b4a18369c84d5d196dc40c7bba10 /Src
parent26cfae830c076dff8289b8a8edc6580b285286de (diff)
downloadzsh-ab4065623aa07a2bf74edcda62d29d02154779d8.tar.gz
zsh-ab4065623aa07a2bf74edcda62d29d02154779d8.tar.xz
zsh-ab4065623aa07a2bf74edcda62d29d02154779d8.zip
34788: refine errflag handling in cmd_or_math()
Diffstat (limited to 'Src')
-rw-r--r--Src/lex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/lex.c b/Src/lex.c
index 6d0079c8f..4d8355bac 100644
--- a/Src/lex.c
+++ b/Src/lex.c
@@ -513,7 +513,7 @@ cmd_or_math(int cs_type)
/* else unsuccessful: unget the whole thing */
hungetc(c);
lexstop = 0;
- while (lexbuf.len > oldlen && !errflag) {
+ while (lexbuf.len > oldlen && !(errflag & ERRFLAG_ERROR)) {
lexbuf.len--;
hungetc(itok(*--lexbuf.ptr) ?
ztokens[*lexbuf.ptr - Pound] : *lexbuf.ptr);