Fix completion when completion-auto-select is set

* lisp/minibuffer.el (completion--do-completion): Do not display
"Complete, but not unique" messages when completion-auto-select is
set.  Fixes bug#60359.
This commit is contained in:
Gregory Heytings 2022-12-29 21:50:26 +00:00
parent 7ccb88486e
commit beed746f94

View 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))))))))