mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-12-09 18:51:46 +01:00
don't return invalid Eprog after parse error (12898)
This commit is contained in:
parent
a93e62c630
commit
a98a3049d9
2 changed files with 5 additions and 2 deletions
|
|
@ -1,5 +1,7 @@
|
|||
2000-10-05 Sven Wischnowsky <wischnow@zsh.org>
|
||||
|
||||
* 12898: Src/parse.c: don't return invalid Eprog after parse error
|
||||
|
||||
* 12897: Src/Zle/computil.c: comparguments: don't use
|
||||
rest-argument-specification if it was inactivated
|
||||
|
||||
|
|
|
|||
|
|
@ -478,9 +478,10 @@ par_event(void)
|
|||
} else {
|
||||
int oec = ecused;
|
||||
|
||||
par_event();
|
||||
if (ecused == oec)
|
||||
if (!par_event()) {
|
||||
ecused = oec;
|
||||
ecbuf[p] |= wc_bdata(Z_END);
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue