summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2020-09-05 23:11:43 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2020-09-05 23:11:43 +0200
commit585fe00557489e49188b6a301f001ef01ff15dcb (patch)
tree642ae05371dc68b7c81d21abe22f6401b94abbdf
parent6cf62141c4467314f67c2ef75a4bf94d41ff050f (diff)
downloademacs-585fe00557489e49188b6a301f001ef01ff15dcb.tar.gz
Fix up previous icomplete-show-matches-on-no-input change
* lisp/icomplete.el (icomplete-completions): Ensure that the default value is cleared (bug#43120).
-rw-r--r--lisp/icomplete.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/icomplete.el b/lisp/icomplete.el
index 8a68df876c1..ba266cfbfe9 100644
--- a/lisp/icomplete.el
+++ b/lisp/icomplete.el
@@ -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))))