about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Src/Zle/complist.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 09816f462..8b5170d2a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-08-07  Peter Stephenson  <pws@csr.com>
+
+	* 22589: Src/Zle/complist.c: bug in menu selection when displaying
+	long lines.
+
 2006-08-06  Clint Adams  <clint@zsh.org>
 
 	* 22588: Completion/Unix/Command/_rake: handle targets
diff --git a/Src/Zle/complist.c b/Src/Zle/complist.c
index 8c6937b4a..08cbb74af 100644
--- a/Src/Zle/complist.c
+++ b/Src/Zle/complist.c
@@ -1649,6 +1649,8 @@ singledraw()
     g = mgtab[ml1 * columns + mc1];
     clprintm(g, mtab[ml1 * columns + mc1], mcc1, ml1, lc1,
              (g->widths ? g->widths[mcc1] : g->width));
+    if (mlprinted)
+	(void) tcmultout(TCUP, TCMULTUP, mlprinted);
     putc('\r', shout);
 
     if (md2 != md1)
@@ -1658,6 +1660,8 @@ singledraw()
     g = mgtab[ml2 * columns + mc2];
     clprintm(g, mtab[ml2 * columns + mc2], mcc2, ml2, lc2,
              (g->widths ? g->widths[mcc2] : g->width));
+    if (mlprinted)
+	(void) tcmultout(TCUP, TCMULTUP, mlprinted);
     putc('\r', shout);
 
     if (mstatprinted) {