Function: magit-mouse-toggle-section
magit-mouse-toggle-section is an interactive and byte-compiled
function defined in magit-section.el.
Signature
(magit-mouse-toggle-section EVENT)
Documentation
Toggle visibility of the clicked section.
Clicks outside either the section heading or the left fringe are silently ignored.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/magit-section-20260330.1102/magit-section.el
(defun magit-mouse-toggle-section (event)
"Toggle visibility of the clicked section.
Clicks outside either the section heading or the left fringe are
silently ignored."
(interactive "e")
(let* ((pos (event-start event))
(section (magit-section-at (posn-point pos))))
(if (eq (posn-area pos) 'left-fringe)
(when section
(while (not (magit-section-content-p section))
(setq section (oref section parent)))
(unless (eq section magit-root-section)
(goto-char (oref section start))
(magit-section-toggle section)))
(magit-section-toggle section))))