From 6472a2b7bc524fbe3f543a41e8991e82e2580443 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Fri, 12 May 2000 07:03:41 +0000 Subject: fix for compadd -x when there are no matches (11335) --- Src/Zle/compcore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src') diff --git a/Src/Zle/compcore.c b/Src/Zle/compcore.c index ee218e132..e8ea28400 100644 --- a/Src/Zle/compcore.c +++ b/Src/Zle/compcore.c @@ -400,7 +400,7 @@ do_completion(Hookdef dummy, Compldat dat) if (nmatches > 1 && diffmatches) { /* There is more than one match. */ ret = do_ambiguous(); - } else if (nmatches == 1 || !diffmatches) { + } else if (nmatches == 1 || (nmatches > 1 && !diffmatches)) { /* Only one match. */ Cmgroup m = amatches; -- cgit 1.4.1