From 5221570c4a7e5670edd96d9b4a871bbe9649bc55 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Wed, 5 Jun 2002 07:49:02 +0000 Subject: don't use optimised completion list display code after the list has been erased or we're not in menu selection anymore anyway (17286) --- ChangeLog | 6 ++++++ Src/Zle/complist.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 7b21edab9..829c39288 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2002-06-05 Sven Wischnowsky + + * 17286: Src/Zle/complist.c: don't use optimised completion + list display code after the list has been erased or we're not + in menu selection anymore anyway + 2002-06-04 Peter Stephenson * 17283: Src/parse.c: `func() { ... } this bit was ignored'. diff --git a/Src/Zle/complist.c b/Src/Zle/complist.c index 6d10a26ce..e09734be7 100644 --- a/Src/Zle/complist.c +++ b/Src/Zle/complist.c @@ -1652,7 +1652,7 @@ complistmatches(Hookdef dummy, Chdata dat) last_cap = (char *) zhalloc(max_caplen + 1); *last_cap = '\0'; - if (!mnew && onlnct == nlnct && mlbeg >= 0 && mlbeg == molbeg) + if (!mnew && inselect && onlnct == nlnct && mlbeg >= 0 && mlbeg == molbeg) singledraw(); else if (!compprintlist(mselect >= 0) || !clearflag) noselect = 1; -- cgit 1.4.1