about summary refs log tree commit diff
path: root/Src/Zle/zle_main.c
diff options
context:
space:
mode:
authorPeter Stephenson <p.w.stephenson@ntlworld.com>2017-01-10 19:18:52 +0000
committerPeter Stephenson <p.w.stephenson@ntlworld.com>2017-01-10 19:18:52 +0000
commit34656ec2f00d6669cef56afdbffdd90639d7b465 (patch)
treeaad44d465568963aeef4bb78f91505da258ea698 /Src/Zle/zle_main.c
parentbb218704d27bcca9aa4426296dcd5c13d58b330a (diff)
downloadzsh-34656ec2f00d6669cef56afdbffdd90639d7b465.tar.gz
zsh-34656ec2f00d6669cef56afdbffdd90639d7b465.tar.xz
zsh-34656ec2f00d6669cef56afdbffdd90639d7b465.zip
40305: fix some problems redisplaying command line after interrupt.
Back off previous fix as this only covered some subset of problems.

Remaining problems happend after reset-prompt in TRAPINT.

One was in complist and is fixed by not attempting to list after
an error or interrupt.

The other was owing to not resetting clearflag when ZLE
was re-entered.
Diffstat (limited to 'Src/Zle/zle_main.c')
-rw-r--r--Src/Zle/zle_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Src/Zle/zle_main.c b/Src/Zle/zle_main.c
index 15ea79643..6c271b5d0 100644
--- a/Src/Zle/zle_main.c
+++ b/Src/Zle/zle_main.c
@@ -1245,6 +1245,7 @@ zleread(char **lp, char **rp, int flags, int context, char *init, char *finish)
     resetneeded = 0;
     fetchttyinfo = 0;
     trashedzle = 0;
+    clearflag = 0;
     raw_lp = lp;
     lpromptbuf = promptexpand(lp ? *lp : NULL, 1, NULL, NULL, &pmpt_attr);
     raw_rp = rp;