]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix completion when completion-auto-select is set
authorGregory Heytings <gregory@heytings.org>
Thu, 29 Dec 2022 21:50:26 +0000 (21:50 +0000)
committerGregory Heytings <gregory@heytings.org>
Thu, 29 Dec 2022 21:52:17 +0000 (22:52 +0100)
* lisp/minibuffer.el (completion--do-completion): Do not display
"Complete, but not unique" messages when completion-auto-select is
set.  Fixes bug#60359.

lisp/minibuffer.el

index 6e42296e7ba7a35f70de08c48364c1550f36e356..7a720cf2c0a37a1cb2cdde612ef973eb4e37632f 100644 (file)
@@ -1474,7 +1474,10 @@ when the buffer's text is already an exact match."
               (if (and (eq this-command last-command) completion-auto-help)
                   (minibuffer-completion-help beg end))
               (completion--done completion 'exact
-                                (unless expect-exact
+                                (unless (or expect-exact
+                                            (and completion-auto-select
+                                                 (eq this-command last-command)
+                                                 completion-auto-help))
                                   "Complete, but not unique"))))
 
             (minibuffer--bitset completed t exact))))))))