From a76b36928c5cbeef3fe015ca30bbf910ab2a107e Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Mon, 22 Nov 1999 12:27:45 +0000 Subject: zsh-workers/8718 --- Src/Zle/compcore.c | 8 +------- 1 file changed, 1 insertion(+), 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) -- cgit 1.4.1