1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-19 13:33:52 +01:00

don't let duplicate matches keep us from recognising exact matches if they produce the same string on the line (12297)

This commit is contained in:
Sven Wischnowsky 2000-07-18 08:37:14 +00:00
parent c7578846f7
commit 67f16de104
2 changed files with 7 additions and 1 deletions

@ -1,3 +1,9 @@
2000-07-18 Sven Wischnowsky <wischnow@zsh.org>
* 12297: Src/Zle/compcore.c: don't let duplicate matches keep us
from recognising exact matches if they produce the same string on
the line
2000-07-18 Wayne Davison <wayned@users.sourceforge.net>
* 12295: Src/builtin.c, Src/hist.c, Src/input.c, Src/lex.c: Fixed

@ -2397,7 +2397,7 @@ add_match_data(int alt, char *str, Cline line,
comp_setunset(0, 0, CP_EXACTSTR, 0);
}
ai->exactm = cm;
} else if (useexact) {
} else if (useexact && !matcheq(cm, ai->exactm)) {
ai->exact = 2;
ai->exactm = NULL;
if (incompfunc)