[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
feature/completions-customs 325548d726: Simplify unneeded condition.
From: |
Jimmy Aguilar Mena |
Subject: |
feature/completions-customs 325548d726: Simplify unneeded condition. |
Date: |
Sun, 13 Mar 2022 17:25:53 -0400 (EDT) |
branch: feature/completions-customs
commit 325548d726c881d4a8d42db11ebce72cb130f66a
Author: Jimmy Aguilar Mena <spacibba@aol.com>
Commit: Jimmy Aguilar Mena <spacibba@aol.com>
Simplify unneeded condition.
* lisp/minibuffer.el (display-completion-list) : The function
completion--insert-string already has a condition for when completions
is nil.
---
lisp/minibuffer.el | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el
index d6d40d5b25..46e7bf2fb0 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)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- feature/completions-customs 325548d726: Simplify unneeded condition.,
Jimmy Aguilar Mena <=