diff options
author | Geoff Wing <gcw@users.sourceforge.net> | 2001-08-15 15:17:42 +0000 |
---|---|---|
committer | Geoff Wing <gcw@users.sourceforge.net> | 2001-08-15 15:17:42 +0000 |
commit | b67e8b380c558a35e49ebd0738ffbf6c2ad43d9f (patch) | |
tree | 6e2bdb352e518007295168360a0620bd2bb1f66d | |
parent | 2eda2a09212e220edf09c978d038d47de0e64267 (diff) | |
download | zsh-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.c | 2 |
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]) { |