emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/git-commit 69327510e2 07/12: magit-section-goto-successor:


From: ELPA Syncer
Subject: [nongnu] elpa/git-commit 69327510e2 07/12: magit-section-goto-successor: Cosmetics
Date: Fri, 13 May 2022 10:58:11 -0400 (EDT)

branch: elpa/git-commit
commit 69327510e2a569a4d619236dc178638a8cb020b1
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>

    magit-section-goto-successor: Cosmetics
---
 lisp/magit-diff.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/magit-diff.el b/lisp/magit-diff.el
index c4d4d49ca4..f405022354 100644
--- a/lisp/magit-diff.el
+++ b/lisp/magit-diff.el
@@ -2887,8 +2887,8 @@ It the SECTION has a different type, then do nothing."
                (siblings (magit-section-siblings section 'prev))
                (previous (nth (length siblings) children)))
           (if (not arg)
-              (--when-let (or previous (car (last children)))
-                (magit-section-goto it)
+              (when-let ((sibling (or previous (car (last children)))))
+                (magit-section-goto sibling)
                 t)
             (when previous
               (magit-section-goto previous))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]