[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/magit 9395de2c94 3/3: magit-section-maybe-remove-heading-m
From: |
Jonas Bernoulli |
Subject: |
[nongnu] elpa/magit 9395de2c94 3/3: magit-section-maybe-remove-heading-map: Fix preserving section map |
Date: |
Fri, 13 Sep 2024 10:57:22 -0400 (EDT) |
branch: elpa/magit
commit 9395de2c94cc430ca865f497046c16f66deccf16
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
magit-section-maybe-remove-heading-map: Fix preserving section map
---
lisp/magit-section.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lisp/magit-section.el b/lisp/magit-section.el
index cdde1c833e..eed4e21b50 100644
--- a/lisp/magit-section.el
+++ b/lisp/magit-section.el
@@ -1633,7 +1633,8 @@ is explicitly expanded."
(defun magit-section-maybe-remove-heading-map (section)
(with-slots (start content end keymap) section
(when (= content end)
- (put-text-property start end 'keymap keymap))))
+ (put-text-property start end 'keymap
+ (if (symbolp keymap) (symbol-value keymap) keymap)))))
(defun magit-insert-child-count (section)
"Modify SECTION's heading to contain number of child sections.