about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>2000-02-15 09:13:38 +0000
committerTanaka Akira <akr@users.sourceforge.net>2000-02-15 09:13:38 +0000
commit6c3be64e8d3e746f1fd2c9a5a9fe2a28d9a44573 (patch)
treef0b5b5420d5c316b4eaccca3d097ae25fa05da8b
parente6cc1ece7fed93fd31ca4e7f7726de034ede887c (diff)
downloadzsh-6c3be64e8d3e746f1fd2c9a5a9fe2a28d9a44573.tar.gz
zsh-6c3be64e8d3e746f1fd2c9a5a9fe2a28d9a44573.tar.xz
zsh-6c3be64e8d3e746f1fd2c9a5a9fe2a28d9a44573.zip
zsh-workers/9732
-rw-r--r--Src/Zle/complist.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Src/Zle/complist.c b/Src/Zle/complist.c
index d19d5e80c..9acccc17a 100644
--- a/Src/Zle/complist.c
+++ b/Src/Zle/complist.c
@@ -780,7 +780,7 @@ complistmatches(Hookdef dummy, Chdata dat)
     if (inselect)
 	clearflag = 0;
 
-    if (asklist() || !clearflag) {
+    if (asklist()) {
 	amatches = oamatches;
 	return (noselect = 1);
     }
@@ -800,7 +800,8 @@ complistmatches(Hookdef dummy, Chdata dat)
     last_cap = (char *) zhalloc(max_caplen + 1);
     *last_cap = '\0';
 
-    if (!printlist(1, clprintm, (mselect >= 0)) || listdat.nlines >= lines)
+    if (!printlist(1, clprintm, (mselect >= 0)) || listdat.nlines >= lines ||
+	!clearflag)
 	noselect = 1;
 
     amatches = oamatches;