summary refs log tree commit diff
path: root/Src/Zle/zle_refresh.c
diff options
context:
space:
mode:
authorBarton E. Schaefer <schaefer@zsh.org>2016-03-03 13:03:40 -0800
committerBarton E. Schaefer <schaefer@zsh.org>2016-03-03 13:03:40 -0800
commit564fb25e821bdd143d23c4e22bc98254b0f8dd59 (patch)
treefb452f9bf57ce41c2a370a93843506bb933040f7 /Src/Zle/zle_refresh.c
parent6756870a9263f510f19b395b37a29e35168f8917 (diff)
downloadzsh-564fb25e821bdd143d23c4e22bc98254b0f8dd59.tar.gz
zsh-564fb25e821bdd143d23c4e22bc98254b0f8dd59.tar.xz
zsh-564fb25e821bdd143d23c4e22bc98254b0f8dd59.zip
38048: fix "zle redisplay" when called while a listing is below the prompt
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 7e4f32876..aca676a1c 100644
--- a/Src/Zle/zle_refresh.c
+++ b/Src/Zle/zle_refresh.c
@@ -2435,8 +2435,8 @@ redisplay(UNUSED(char **args))
     moveto(0, 0);
     zputc(&zr_cr);		/* extra care */
     tc_upcurs(lprompth - 1);
-    resetneeded = 1;
-    clearflag = 0;
+    resetneeded = !showinglist;
+    clearflag = showinglist;
     return 0;
 }