about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--Src/Zle/complist.c6
-rw-r--r--Src/Zle/zle_refresh.c2
3 files changed, 10 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index a1759eea9..d77e8abbd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2003-05-05  Andrey Borzenkov  <bor@zsh.org>
+
+	* 18476: Src/Zle/complist.c, Src/Zle/zle_refresh.c: fix
+	menu selection on terminals without cursor_down or with
+	cursor_down set to ^J (Linux console)
+
 2003-05-02  Peter Stephenson  <pws@csr.com>
 
 	* 18497: README, Etc/NEWS, Fuctions/TCP/tcp_spam: Tweak
diff --git a/Src/Zle/complist.c b/Src/Zle/complist.c
index 1640f9e9c..5190511bf 100644
--- a/Src/Zle/complist.c
+++ b/Src/Zle/complist.c
@@ -1556,7 +1556,7 @@ singledraw()
     mcc2 = singlecalc(&mc2, ml2, &lc2);
 
     if (md1)
-        tcmultout(TCDOWN, TCMULTDOWN, md1);
+        tc_downcurs(md1);
     if (mc1)
         tcmultout(TCRIGHT, TCMULTRIGHT, mc1);
     g = mgtab[ml1 * columns + mc1];
@@ -1565,7 +1565,7 @@ singledraw()
     putc('\r', shout);
 
     if (md2 != md1)
-        tcmultout(TCDOWN, TCMULTDOWN, md2 - md1);
+        tc_downcurs(md2 - md1);
     if (mc2)
         tcmultout(TCRIGHT, TCMULTRIGHT, mc2);
     g = mgtab[ml2 * columns + mc2];
@@ -1576,7 +1576,7 @@ singledraw()
     if (mstatprinted) {
         int i = lines - md2 - nlnct;
 
-        tcmultout(TCDOWN, TCMULTDOWN, i - 1);
+        tc_downcurs(i - 1);
         compprintfmt(NULL, 0, 1, 1, mline, NULL);
         tcmultout(TCUP, TCMULTUP, lines - 1);
     } else
diff --git a/Src/Zle/zle_refresh.c b/Src/Zle/zle_refresh.c
index c33c26119..1d745d4f7 100644
--- a/Src/Zle/zle_refresh.c
+++ b/Src/Zle/zle_refresh.c
@@ -1062,7 +1062,7 @@ tc_rightcurs(int ct)
 }
 
 /**/
-static int
+mod_export int
 tc_downcurs(int ct)
 {
     int ret = 0;