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:
parent
86229fdf09
commit
3bca11c35c
2 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue