branch: elpa/git-commit
commit 69327510e2a569a4d619236dc178638a8cb020b1
Author: Jonas Bernoulli <jo...@bernoul.li>
Commit: Jonas Bernoulli <jo...@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