From 78893e057c93ff280afebec61826219eb076c3fb Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Thu, 8 Mar 2007 14:34:11 +0000 Subject: [PATCH] (Ftry_completion): Don't short circuit if completion-ignore-case is non-nil. --- src/minibuf.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/minibuf.c b/src/minibuf.c index 5bb91cf7348..1c2cfc45306 100644 --- a/src/minibuf.c +++ b/src/minibuf.c @@ -1483,6 +1483,10 @@ is used to further constrain the set of candidates. */) matchcount++; bestmatchsize = matchsize; if (matchsize <= SCHARS (string) + /* If completion-ignore-case is non-nil, don't + short-circuit because we want to find the best + possible match *including* case differences. */ + && !completion_ignore_case && matchcount > 1) /* No need to look any further. */ break; -- 2.39.2