Function: magit-section-set-window-start

magit-section-set-window-start is a byte-compiled function defined in magit-section.el.

Signature

(magit-section-set-window-start SECTION)

Documentation

Ensure the beginning of SECTION is visible.

Source Code

;; Defined in ~/.emacs.d/elpa/magit-section-20260330.1102/magit-section.el
(defun magit-section-set-window-start (section)
  "Ensure the beginning of SECTION is visible."
  (unless (pos-visible-in-window-p (oref section end))
    (set-window-start (selected-window) (oref section start))))