]> git.eshelyaron.com Git - emacs.git/commitdiff
(do_completion): Always use compare-string, not string-equal because
authorKenichi Handa <handa@m17n.org>
Thu, 24 Aug 2000 03:24:13 +0000 (03:24 +0000)
committerKenichi Handa <handa@m17n.org>
Thu, 24 Aug 2000 03:24:13 +0000 (03:24 +0000)
the latter doesn't pay attention to multibyteness of strings.

src/minibuf.c

index 19c06105fbc6729540d399ebca473111e54be08f..740f73cbd4e9986ef1a9f826cb7cfc9373b5d462 100644 (file)
@@ -1610,8 +1610,8 @@ do_completion ()
   tem = Fcompare_strings (completion, Qnil, Qnil, string, Qnil, Qnil, Qt);
   completedp = !EQ (tem, Qt);
 
-  tem = Fstring_equal (completion, string);
-  if (NILP (tem))
+  tem = Fcompare_strings (completion, Qnil, Qnil, string, Qnil, Qnil, Qnil);
+  if (!EQ (tem, Qt))
     /* Rewrite the user's input.  */
     {
       Fdelete_field (make_number (ZV)); /* Some completion happened */