Function: magit-current-section
magit-current-section is a byte-compiled function defined in
magit-section.el.
Signature
(magit-current-section)
Documentation
Return the section at point or where the context menu was invoked.
When using the context menu, return the section that the user clicked on, provided the current buffer is the buffer in which the click occurred. Otherwise return the section at point.
Source Code
;; Defined in ~/.emacs.d/elpa/magit-section-20260330.1102/magit-section.el
(defun magit-current-section ()
"Return the section at point or where the context menu was invoked.
When using the context menu, return the section that the user
clicked on, provided the current buffer is the buffer in which
the click occurred. Otherwise return the section at point."
(or magit--context-menu-section
(magit-section-at)
magit-root-section))