1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-11-01 18:30:55 +01:00

36470: Auxiliary to 36468, return an empty buffer from zleread() if a widget exits

This commit is contained in:
Barton E. Schaefer 2015-09-10 09:10:08 -07:00
parent 86229fdf09
commit 3bca11c35c
2 changed files with 6 additions and 1 deletions

View file

@ -1276,7 +1276,7 @@ zleread(char **lp, char **rp, int flags, int context, char *init, char *finish)
alarm(0);
freeundo();
if (eofsent || errflag) {
if (eofsent || errflag || exit_pending) {
s = NULL;
} else {
zleline[zlell++] = ZWC('\n');