branch: elpa/magit
commit 6ce1ece58007acf6eb8caff1052365f5fe16bbc7
Author: Jonas Bernoulli <[email protected]>
Commit: Jonas Bernoulli <[email protected]>
magit-insert-section--finish: Fix adding heading keymap
Call `magit-section-maybe-add-heading-map' after
`magit--set-section-properties', else the heading
keymap gets added and immediately removed again.
---
lisp/magit-section.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lisp/magit-section.el b/lisp/magit-section.el
index 6bf93ea0940..930209b2b78 100644
--- a/lisp/magit-section.el
+++ b/lisp/magit-section.el
@@ -1462,10 +1462,10 @@ anything this time around.
(let ((magit-section-cache-visibility nil))
(magit-section-show obj)))
(t
- (when (oref obj children)
- (magit-insert-child-count obj)
- (magit-section-maybe-add-heading-map obj))
(magit-section--set-section-properties obj)
+ (when (oref obj children)
+ (magit-section-maybe-add-heading-map obj)
+ (magit-insert-child-count obj))
(if magit-section-insert-in-reverse
(push obj (oref (oref obj parent) children))
(let ((parent (oref obj parent)))