diff options
Diffstat (limited to 'Src/lex.c')
-rw-r--r-- | Src/lex.c | 2 |
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); |