changeset 76384:24884385912f

(Ftry_completion): Don't short circuit if completion-ignore-case is non-nil.
author Chong Yidong <cyd@stupidchicken.com>
date Thu, 08 Mar 2007 14:34:11 +0000
parents e20f9f5b4a77
children 48a88502cc43
files src/minibuf.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/minibuf.c	Thu Mar 08 14:34:03 2007 +0000
+++ b/src/minibuf.c	Thu Mar 08 14:34:11 2007 +0000
@@ -1483,6 +1483,10 @@
 		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;