Function: magit-section-maybe-remove-heading-map

magit-section-maybe-remove-heading-map is a byte-compiled function defined in magit-section.el.

Signature

(magit-section-maybe-remove-heading-map SECTION)

Source Code

;; Defined in ~/.emacs.d/elpa/magit-section-20260330.1102/magit-section.el
(defun magit-section-maybe-remove-heading-map (section)
  (with-slots (start content end keymap) section
    (when (= content end)
      (put-text-property start end 'keymap
                         (if (symbolp keymap) (symbol-value keymap) keymap)))))