summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Heytings <gregory@heytings.org>2022-12-29 21:50:26 +0000
committerGregory Heytings <gregory@heytings.org>2022-12-29 22:52:17 +0100
commitbeed746f944aba2559192c057ea294233876e99d (patch)
tree0d5620b7246c34dc3f2368931df3bfbae87dc4c6
parent7ccb88486eb289a1a59dcb01ae604fc6c31ea804 (diff)
downloademacs-beed746f944aba2559192c057ea294233876e99d.tar.gz
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.
-rw-r--r--lisp/minibuffer.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el
index 6e42296e7ba..7a720cf2c0a 100644
--- a/lisp/minibuffer.el
+++ b/lisp/minibuffer.el
@@ -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))))))))