branch: elpa/magit
commit 0247ef92c4794871c089474acb0e10ec0739c4ed
Author: Jonas Bernoulli <[email protected]>
Commit: Jonas Bernoulli <[email protected]>

    magit-section-context-menu: Cosmetics
---
 lisp/magit-section.el | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/lisp/magit-section.el b/lisp/magit-section.el
index a2cdef9d06f..a574d916516 100644
--- a/lisp/magit-section.el
+++ b/lisp/magit-section.el
@@ -614,16 +614,16 @@ with SECTION, otherwise return a list of section types."
           ,(if (oref section hidden) "Expand section" "Collapse section")
           magit-section-toggle))
       (when-let (((not (oref section hidden)))
-                 (children (oref section children)))
-        (when (seq-some #'magit-section-content-p children)
-          (when (seq-some (##oref % hidden) children)
-            (keymap-set-after menu "<magit-section-show-children>"
-              `(menu-item "Expand children"
-                          magit-section-show-children)))
-          (when (seq-some (##not (oref % hidden)) children)
-            (keymap-set-after menu "<magit-section-hide-children>"
-              `(menu-item "Collapse children"
-                          magit-section-hide-children)))))
+                 (children (oref section children))
+                 ((seq-some #'magit-section-content-p children)))
+        (when (seq-some (##oref % hidden) children)
+          (keymap-set-after menu "<magit-section-show-children>"
+            `(menu-item "Expand children"
+                        magit-section-show-children)))
+        (when (seq-some (##not (oref % hidden)) children)
+          (keymap-set-after menu "<magit-section-hide-children>"
+            `(menu-item "Collapse children"
+                        magit-section-hide-children))))
       (keymap-set-after menu "<separator-magit-1>" menu-bar-separator))
     (keymap-set-after menu "<magit-describe-section>"
       `(menu-item "Describe section" magit-describe-section))

Reply via email to