diff options
-rw-r--r-- | lisp/icomplete.el | 2 |
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)))) |