]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix up previous icomplete-show-matches-on-no-input change
authorLars Ingebrigtsen <larsi@gnus.org>
Sat, 5 Sep 2020 21:11:43 +0000 (23:11 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sat, 5 Sep 2020 21:11:43 +0000 (23:11 +0200)
* lisp/icomplete.el (icomplete-completions): Ensure that the
default value is cleared (bug#43120).

lisp/icomplete.el

index 8a68df876c10c22358a40041a99970c46f08238e..ba266cfbfe9e5675dbd2b165a3c48dc910b4d2fa 100644 (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))))