Function: magit-hunk-set-window-start

magit-hunk-set-window-start is a natively 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 /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/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)))