1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-17 02:51:01 +02: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

@ -1,3 +1,8 @@
2015-09-10 Barton E. Schaefer <schaefer@zsh.org>
* 36470: Src/Zle/zle_main.c: Auxiliary to 36468, return an empty
buffer from zleread() if a widget exits
2015-09-10 Peter Stephenson <p.stephenson@samsung.com>
* 36468: Src/hist.c: Infinite loop if we tried to exit from a

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');