about summary refs log tree commit diff
path: root/Src/Zle/compcore.c
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>2000-01-13 18:57:27 +0000
committerTanaka Akira <akr@users.sourceforge.net>2000-01-13 18:57:27 +0000
commit240bb5d58111c7906e538318fc9162a1bb17a9d5 (patch)
tree583a4ef357b432560541ebb02918c5ae0057e7bf /Src/Zle/compcore.c
parentc8eba737c75237317bf8491627a550a2ceb4fd11 (diff)
downloadzsh-240bb5d58111c7906e538318fc9162a1bb17a9d5.tar.gz
zsh-240bb5d58111c7906e538318fc9162a1bb17a9d5.tar.xz
zsh-240bb5d58111c7906e538318fc9162a1bb17a9d5.zip
manual/9305-for-dev-15
Diffstat (limited to 'Src/Zle/compcore.c')
-rw-r--r--Src/Zle/compcore.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/Src/Zle/compcore.c b/Src/Zle/compcore.c
index 028536206..4d7ee469b 100644
--- a/Src/Zle/compcore.c
+++ b/Src/Zle/compcore.c
@@ -2569,9 +2569,11 @@ permmatches(int last)
     static int fi = 0;
     int nn, nl, ll, gn = 1, mn = 1, rn;
 
-    if (pmatches && !newmatches)
+    if (pmatches && !newmatches) {
+	if (last && fi)
+	    ainfo = fainfo;
 	return fi;
-
+    }
     newmatches = fi = 0;
 
     if (pmatches)
@@ -2587,7 +2589,7 @@ permmatches(int last)
     }
     while (g) {
 	HEAPALLOC {
-	    if (empty(g->lmatches))
+	    if (fi)
 		/* We have no matches, try ignoring fignore. */
 		mlist = g->lfmatches;
 	    else