18476: Fix menu selection on Linux console

This commit is contained in:
Andrey Borzenkov 2003-05-05 06:07:04 +00:00
parent 48d0166c1c
commit f318d64e3d
3 changed files with 10 additions and 4 deletions

View file

@ -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

View file

@ -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

View file

@ -1062,7 +1062,7 @@ tc_rightcurs(int ct)
}
/**/
static int
mod_export int
tc_downcurs(int ct)
{
int ret = 0;