1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-05-20 06:56:05 +02:00

34919: update interrupt parse error for ZLE cases.

Covers both send-break and push-input.
This commit is contained in:
Peter Stephenson 2015-04-17 17:36:55 +01:00
parent 156327023c
commit de22f2bfa6
3 changed files with 5 additions and 2 deletions

View File

@ -5,6 +5,9 @@
2015-04-17 Peter Stephenson <p.stephenson@samsung.com>
* 34919: Src/Zle/zle_hist.c, Src/Zle/zle_misc.c: similar cases
with send-break and push-input.
* 34905: Src/Zle/zle_keymap.c, Src/lex.c, Src/parse.c: suppress
parse errors resulting from keyboard interruption.

View File

@ -854,7 +854,7 @@ pushlineoredit(char **args)
}
ret = pushline(args);
if (!isfirstln) {
errflag |= ERRFLAG_ERROR;
errflag |= ERRFLAG_ERROR|ERRFLAG_INT;
done = 1;
}
clearlist = 1;

View File

@ -1041,7 +1041,7 @@ copyprevshellword(UNUSED(char **args))
int
sendbreak(UNUSED(char **args))
{
errflag |= ERRFLAG_ERROR;
errflag |= ERRFLAG_ERROR|ERRFLAG_INT;
return 1;
}