diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2006-08-15 21:19:34 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2006-08-15 21:19:34 +0000 |
commit | 77321097e70b492090ab0364dadc1329ecc0b0d8 (patch) | |
tree | b3c000fefc7e4fcc17cc00e4f8033725a2053308 /Src | |
parent | 45de69686bb3e0d079107af12845f9f6f1bead28 (diff) | |
download | zsh-77321097e70b492090ab0364dadc1329ecc0b0d8.tar.gz zsh-77321097e70b492090ab0364dadc1329ecc0b0d8.tar.xz zsh-77321097e70b492090ab0364dadc1329ecc0b0d8.zip |
22611: bug scrolling wide completion list
Diffstat (limited to 'Src')
-rw-r--r-- | Src/Zle/complist.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Src/Zle/complist.c b/Src/Zle/complist.c index 651a22b68..ff3650a79 100644 --- a/Src/Zle/complist.c +++ b/Src/Zle/complist.c @@ -1529,11 +1529,7 @@ clprintm(Cmgroup g, Cmatch *mp, int mc, int ml, int lastc, int width) } } if (!dolist(ml)) { - int nc = printfmt(m->disp, 0, 0, 0); - if (nc) - mlprinted = (nc - 1) / columns; - else - mlprinted = 0; + mlprinted = printfmt(m->disp, 0, 0, 0); return 0; } if (m->gnum == mselect) { |