summary refs log tree commit diff
path: root/Src/Zle/zle_refresh.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_refresh.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_refresh.c')
-rw-r--r--Src/Zle/zle_refresh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/Zle/zle_refresh.c b/Src/Zle/zle_refresh.c
index 8d173cda1..83917396a 100644
--- a/Src/Zle/zle_refresh.c
+++ b/Src/Zle/zle_refresh.c
@@ -2434,8 +2434,8 @@ redisplay(UNUSED(char **args))
     moveto(0, 0);
     zputc(&zr_cr);		/* extra care */
     tc_upcurs(lprompth - 1);
-    resetneeded = !showinglist;
-    clearflag = showinglist;
+    resetneeded = 1;
+    clearflag = 0;
     return 0;
 }