[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/git-commit edc593c7c1: magit-log-insert-child-count: Use e
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/git-commit edc593c7c1: magit-log-insert-child-count: Use eq instead of = |
Date: |
Fri, 11 Feb 2022 17:58:09 -0500 (EST) |
branch: elpa/git-commit
commit edc593c7c112dc6c26244acdd8755900175eaf67
Author: Cameron Chaparro <cameron.chaparro@zadentech.com>
Commit: Jonas Bernoulli <jonas@bernoul.li>
magit-log-insert-child-count: Use eq instead of =
A call to `magit-log-get-commit-limit' can return nil, so make sure
we don't try to compare nil as a number.
---
lisp/magit-log.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/magit-log.el b/lisp/magit-log.el
index 95e5bdced3..f97c96f65a 100644
--- a/lisp/magit-log.el
+++ b/lisp/magit-log.el
@@ -1863,7 +1863,7 @@ Show the last `magit-log-section-commit-count' commits."
(when magit-section-show-child-count
(let ((count (length (oref magit-insert-section--current children))))
(when (> count 0)
- (when (= count (magit-log-get-commit-limit))
+ (when (eq count (magit-log-get-commit-limit))
(setq count (format "%s+" count)))
(save-excursion
(goto-char (- (oref magit-insert-section--current content) 2))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [nongnu] elpa/git-commit edc593c7c1: magit-log-insert-child-count: Use eq instead of =,
ELPA Syncer <=