about summary refs log tree commit diff
path: root/Src/Zle/complist.c
diff options
context:
space:
mode:
Diffstat (limited to 'Src/Zle/complist.c')
-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;