summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorBarton E. Schaefer <schaefer@zsh.org>2015-09-10 09:10:08 -0700
committerBarton E. Schaefer <schaefer@zsh.org>2015-09-10 09:10:08 -0700
commit3bca11c35cf9185c28a9b01e866bc5c7b1a96bfd (patch)
treebf3a2c5a3b1f55e725d0dc97399ef9ed68f6b782 /Src
parent86229fdf09e2c69576000b0f83edb35148096452 (diff)
downloadzsh-3bca11c35cf9185c28a9b01e866bc5c7b1a96bfd.tar.gz
zsh-3bca11c35cf9185c28a9b01e866bc5c7b1a96bfd.tar.xz
zsh-3bca11c35cf9185c28a9b01e866bc5c7b1a96bfd.zip
36470: Auxiliary to 36468, return an empty buffer from zleread() if a widget exits
Diffstat (limited to 'Src')
-rw-r--r--Src/Zle/zle_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/Zle/zle_main.c b/Src/Zle/zle_main.c
index e610ae1f3..ec3d2c354 100644
--- a/Src/Zle/zle_main.c
+++ b/Src/Zle/zle_main.c
@@ -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');