1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-03 10:21:46 +02:00

zsh-workers/8718

This commit is contained in:
Tanaka Akira 1999-11-22 12:27:45 +00:00
parent e7a0ef2db1
commit a76b36928c

View file

@ -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)