From 585fe00557489e49188b6a301f001ef01ff15dcb Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Sat, 5 Sep 2020 23:11:43 +0200 Subject: [PATCH] Fix up previous icomplete-show-matches-on-no-input change * lisp/icomplete.el (icomplete-completions): Ensure that the default value is cleared (bug#43120). --- lisp/icomplete.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)))) -- 2.39.5