about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2002-06-05 07:49:02 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2002-06-05 07:49:02 +0000
commit5221570c4a7e5670edd96d9b4a871bbe9649bc55 (patch)
treec373f637d2938514eda4815137d2916d6a8298e1
parent07047de129dc713f10f8dbe794885768125987fe (diff)
downloadzsh-5221570c4a7e5670edd96d9b4a871bbe9649bc55.tar.gz
zsh-5221570c4a7e5670edd96d9b4a871bbe9649bc55.tar.xz
zsh-5221570c4a7e5670edd96d9b4a871bbe9649bc55.zip
don't use optimised completion list display code after the list has been erased or we're not in menu selection anymore anyway (17286)
-rw-r--r--ChangeLog6
-rw-r--r--Src/Zle/complist.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 7b21edab9..829c39288 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2002-06-05  Sven Wischnowsky  <wischnow@zsh.org>
+
+	* 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  <pws@pwstephenson.fsnet.co.uk>
 
 	* 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;