about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-11-22 12:27:45 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-11-22 12:27:45 +0000
commita76b36928c5cbeef3fe015ca30bbf910ab2a107e (patch)
treea6ed5271c30b6da202a8bc9f76e3f9f84ec7b92e /Src
parente7a0ef2db10c24b800e8d9b0154c24f766e916d5 (diff)
downloadzsh-a76b36928c5cbeef3fe015ca30bbf910ab2a107e.tar.gz
zsh-a76b36928c5cbeef3fe015ca30bbf910ab2a107e.tar.xz
zsh-a76b36928c5cbeef3fe015ca30bbf910ab2a107e.zip
zsh-workers/8718
Diffstat (limited to 'Src')
-rw-r--r--Src/Zle/compcore.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/Src/Zle/compcore.c b/Src/Zle/compcore.c
index 5ee21932d..01586a7a2 100644
--- a/Src/Zle/compcore.c
+++ b/Src/Zle/compcore.c
@@ -1735,7 +1735,7 @@ addmatches(Cadata dat, char **argv)
 		}
 		sl = strlen(s);
 		isalt = oisalt;
-		if ((!dat->psuf || !*(dat->psuf)) && aign) {
+		if (doadd && (!dat->psuf || !*(dat->psuf)) && aign) {
 		    /* Do the suffix-test. If the match has one of the
 		     * suffixes from ign, we put it in the alternate set. */
 		    char **pt = aign;
@@ -1745,12 +1745,6 @@ addmatches(Cadata dat, char **argv)
 			if ((filell = strlen(*pt)) < sl
 			    && !strcmp(*pt, s + sl - filell))
 			    isalt = 1;
-
-		    if (isalt && !doadd) {
-			if (dparr && !*++dparr)
-			    dparr = NULL;
-			continue;
-		    }
 		}
 		if (!(dat->aflags & CAF_MATCH)) {
 		    if (dat->aflags & CAF_QUOTE)