summaryrefslogtreecommitdiff
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
parent45de69686bb3e0d079107af12845f9f6f1bead28 (diff)
downloadzsh-77321097e70b492090ab0364dadc1329ecc0b0d8.tar.gz
zsh-77321097e70b492090ab0364dadc1329ecc0b0d8.zip
22611: bug scrolling wide completion list
-rw-r--r--ChangeLog5
-rw-r--r--Src/Zle/complist.c6
2 files changed, 6 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 974c1c42f..446d5b722 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-08-15 Peter Stephenson <p.w.stephenson@ntlworld.com>
+
+ * 22611: Src/Zle/complist.c: bug when scrolling completion
+ list with line wider than screen.
+
2006-08-15 Clint Adams <clint@zsh.org>
* 22609: Completion/Unix/Command/_baz: complete for
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) {