summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) {