Function: magit-section-selected-p

magit-section-selected-p is a byte-compiled function defined in magit-section.el.

Signature

(magit-section-selected-p SECTION &optional (SELECTION nil SSELECTION))

Source Code

;; Defined in ~/.emacs.d/elpa/magit-section-20260330.1102/magit-section.el
;;; Utilities

(cl-defun magit-section-selected-p (section &optional (selection nil sselection))
  (and (not (eq section magit-root-section))
       (or  (eq section (magit-current-section))
            (memq section (if sselection
                              selection
                            (setq selection (magit-region-sections))))
            (and$ (oref section parent)
                  (magit-section-selected-p $ selection)))))