Fix up previous icomplete-show-matches-on-no-input change

* lisp/icomplete.el (icomplete-completions): Ensure that the
default value is cleared (bug#43120).
This commit is contained in:
Lars Ingebrigtsen 2020-09-05 23:11:43 +02:00
parent 6cf62141c4
commit 585fe00557

View file

@ -715,7 +715,7 @@ matches exist."
(setq prospects (nreverse prospects))
;; Return the first match if the user hits enter.
(when icomplete-show-matches-on-no-input
(setq completion-content-when-empty (car prospects)))
(setq-local completion-content-when-empty (car prospects)))
;; Decorate first of the prospects.
(when prospects
(let ((first (copy-sequence (pop prospects))))