about summary refs log tree commit diff
path: root/Src/Zle/complist.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2006-08-15 21:19:34 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2006-08-15 21:19:34 +0000
commit77321097e70b492090ab0364dadc1329ecc0b0d8 (patch)
treeb3c000fefc7e4fcc17cc00e4f8033725a2053308 /Src/Zle/complist.c
parent45de69686bb3e0d079107af12845f9f6f1bead28 (diff)
downloadzsh-77321097e70b492090ab0364dadc1329ecc0b0d8.tar.gz
zsh-77321097e70b492090ab0364dadc1329ecc0b0d8.tar.xz
zsh-77321097e70b492090ab0364dadc1329ecc0b0d8.zip
22611: bug scrolling wide completion list
Diffstat (limited to 'Src/Zle/complist.c')
-rw-r--r--Src/Zle/complist.c6
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) {