From 67f16de104da5af502bf47b63ed83f981fa28739 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Tue, 18 Jul 2000 08:37:14 +0000 Subject: don't let duplicate matches keep us from recognising exact matches if they produce the same string on the line (12297) --- Src/Zle/compcore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src/Zle/compcore.c') diff --git a/Src/Zle/compcore.c b/Src/Zle/compcore.c index ed53fa25a..80f558b5e 100644 --- a/Src/Zle/compcore.c +++ b/Src/Zle/compcore.c @@ -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) -- cgit 1.4.1