diff options
author | Jimmy Aguilar Mena <spacibba@aol.com> | 2022-03-13 22:22:02 +0100 |
---|---|---|
committer | Jimmy Aguilar Mena <spacibba@aol.com> | 2022-03-13 22:22:02 +0100 |
commit | 325548d726c881d4a8d42db11ebce72cb130f66a (patch) | |
tree | df78525e05c6d2be85fb17cc0f544bb55520708c /lisp/minibuffer.el | |
parent | 2ce4c038ec27e5fc40a5adf54f7a8498f0692b88 (diff) | |
download | emacs-325548d726c881d4a8d42db11ebce72cb130f66a.tar.gz emacs-325548d726c881d4a8d42db11ebce72cb130f66a.tar.bz2 emacs-325548d726c881d4a8d42db11ebce72cb130f66a.zip |
Simplify unneeded condition.
* lisp/minibuffer.el (display-completion-list) : The function
completion--insert-string already has a condition for when completions
is nil.
Diffstat (limited to 'lisp/minibuffer.el')
-rw-r--r-- | lisp/minibuffer.el | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el index d6d40d5b251..46e7bf2fb05 100644 --- a/lisp/minibuffer.el +++ b/lisp/minibuffer.el @@ -2145,10 +2145,9 @@ candidates." (with-current-buffer standard-output (goto-char (point-max)) - (when completions - (when completion-header-format - (insert (format completion-header-format (length completions)))) - (completion--insert-strings completions group-fun)))) + (when completion-header-format + (insert (format completion-header-format (length completions)))) + (completion--insert-strings completions group-fun))) (run-hooks 'completion-setup-hook) nil) |