about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGeoff Wing <gcw@users.sourceforge.net>2001-08-15 15:17:42 +0000
committerGeoff Wing <gcw@users.sourceforge.net>2001-08-15 15:17:42 +0000
commitb67e8b380c558a35e49ebd0738ffbf6c2ad43d9f (patch)
tree6e2bdb352e518007295168360a0620bd2bb1f66d
parent2eda2a09212e220edf09c978d038d47de0e64267 (diff)
downloadzsh-b67e8b380c558a35e49ebd0738ffbf6c2ad43d9f.tar.gz
zsh-b67e8b380c558a35e49ebd0738ffbf6c2ad43d9f.tar.xz
zsh-b67e8b380c558a35e49ebd0738ffbf6c2ad43d9f.zip
Don't segv if we were displaying n lines and screen was
resized to less than  n  lines
-rw-r--r--Src/Zle/zle_refresh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/Zle/zle_refresh.c b/Src/Zle/zle_refresh.c
index a05b6634b..c432907d1 100644
--- a/Src/Zle/zle_refresh.c
+++ b/Src/Zle/zle_refresh.c
@@ -350,7 +350,7 @@ zrefresh(void)
 		listshown = 0;
 	}
         if (t0 > -1)
-            olnct = t0;
+            olnct = (t0 < winh) ? t0 : winh;
         if (termflags & TERM_SHORT)
             vcs = 0;
         else if (!clearflag && lpromptbuf[0]) {