about summary refs log tree commit diff
path: root/Src/Zle/compcore.c
diff options
context:
space:
mode:
Diffstat (limited to 'Src/Zle/compcore.c')
-rw-r--r--Src/Zle/compcore.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/Src/Zle/compcore.c b/Src/Zle/compcore.c
index 4d7ee469b..028536206 100644
--- a/Src/Zle/compcore.c
+++ b/Src/Zle/compcore.c
@@ -2569,11 +2569,9 @@ permmatches(int last)
     static int fi = 0;
     int nn, nl, ll, gn = 1, mn = 1, rn;
 
-    if (pmatches && !newmatches) {
-	if (last && fi)
-	    ainfo = fainfo;
+    if (pmatches && !newmatches)
 	return fi;
-    }
+
     newmatches = fi = 0;
 
     if (pmatches)
@@ -2589,7 +2587,7 @@ permmatches(int last)
     }
     while (g) {
 	HEAPALLOC {
-	    if (fi)
+	    if (empty(g->lmatches))
 		/* We have no matches, try ignoring fignore. */
 		mlist = g->lfmatches;
 	    else