From 0e7c726c326ec255e00ce43818c793d974bc2268 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Tue, 14 Mar 2000 09:43:42 +0000 Subject: zsh-workers/10127 --- Src/Zle/zle_refresh.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Src/Zle/zle_refresh.c') diff --git a/Src/Zle/zle_refresh.c b/Src/Zle/zle_refresh.c index 4c5a0cdf8..75da73efb 100644 --- a/Src/Zle/zle_refresh.c +++ b/Src/Zle/zle_refresh.c @@ -59,6 +59,11 @@ mod_export int showinglist; /**/ mod_export int listshown; +/* Length of last list displayed (if it is below the prompt). */ + +/**/ +mod_export int lastlistlen; + /* Non-zero if ALWAYS_LAST_PROMPT has been used, meaning that the * * screen below the buffer display should not be cleared by * * zrefresh(), but should be by trashzle(). */ @@ -282,7 +287,7 @@ zrefresh(void) clearflag = 0; resetneeded = 1; } - listshown = 0; + listshown = lastlistlen = 0; if (showinglist != -2) showinglist = 0; } -- cgit 1.4.1