aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2000-08-24 03:24:13 +0000
committerKenichi Handa2000-08-24 03:24:13 +0000
commit7892a68b982e3460ffdf15e69280877a8872915d (patch)
treef9f801b795f27da14adf885863b01506c60ae374 /src
parentd246d5f5832420ceaac7ee08ff275a5ff2474cdb (diff)
downloademacs-7892a68b982e3460ffdf15e69280877a8872915d.tar.gz
emacs-7892a68b982e3460ffdf15e69280877a8872915d.zip
(do_completion): Always use compare-string, not string-equal because
the latter doesn't pay attention to multibyteness of strings.
Diffstat (limited to 'src')
-rw-r--r--src/minibuf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/minibuf.c b/src/minibuf.c
index 19c06105fbc..740f73cbd4e 100644
--- a/src/minibuf.c
+++ b/src/minibuf.c
@@ -1610,8 +1610,8 @@ do_completion ()
1610 tem = Fcompare_strings (completion, Qnil, Qnil, string, Qnil, Qnil, Qt); 1610 tem = Fcompare_strings (completion, Qnil, Qnil, string, Qnil, Qnil, Qt);
1611 completedp = !EQ (tem, Qt); 1611 completedp = !EQ (tem, Qt);
1612 1612
1613 tem = Fstring_equal (completion, string); 1613 tem = Fcompare_strings (completion, Qnil, Qnil, string, Qnil, Qnil, Qnil);
1614 if (NILP (tem)) 1614 if (!EQ (tem, Qt))
1615 /* Rewrite the user's input. */ 1615 /* Rewrite the user's input. */
1616 { 1616 {
1617 Fdelete_field (make_number (ZV)); /* Some completion happened */ 1617 Fdelete_field (make_number (ZV)); /* Some completion happened */