Function: magit-hunk-set-window-start

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

Signature

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

Documentation

When SECTION is a hunk, ensure that its beginning is visible.

It the SECTION has a different type, then do nothing.

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-diff.el
;;; Hunk Section

(defun magit-hunk-set-window-start (section)
  "When SECTION is a `hunk', ensure that its beginning is visible.
It the SECTION has a different type, then do nothing."
  (when (magit-hunk-section-p section)
    (magit-section-set-window-start section)))