branch: elpa/git-commit
commit d22fb56615a6e91b259f9b7ae1b46f4274b29ed6
Author: Jonas Bernoulli <jo...@bernoul.li>
Commit: Jonas Bernoulli <jo...@bernoul.li>

    magit-insert-section--finish: Add heading keymap just once
---
 lisp/magit-section.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/magit-section.el b/lisp/magit-section.el
index 8d36c2374c..32a3a15cef 100644
--- a/lisp/magit-section.el
+++ b/lisp/magit-section.el
@@ -1453,6 +1453,7 @@ anything this time around.
     (cond ((eq obj magit-root-section))
           (children
            (magit-insert-child-count obj)
+           (magit-section-maybe-add-heading-map obj)
            (save-excursion
              (goto-char beg)
              (while (< (point) end)
@@ -1461,7 +1462,6 @@ anything this time around.
                                end)))
                  (unless (magit-section-at)
                    (add-text-properties (point) next props))
-                 (magit-section-maybe-add-heading-map obj)
                  (goto-char next)))))
           ((add-text-properties beg end props)))
     (cond ((eq obj magit-root-section)

Reply via email to