Function: evil-scroll-line-to-top

evil-scroll-line-to-top is an interactive and byte-compiled function defined in evil-commands.el.

Signature

(evil-scroll-line-to-top COUNT)

Documentation

Scroll line number COUNT (or the cursor line) to the top of the window.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-commands.el
(evil-define-command evil-scroll-line-to-top (count)
  "Scroll line number COUNT (or the cursor line) to the top of the window."
  :repeat nil
  :keep-visual t
  (interactive "<c>")
  (when count
    (evil-save-column
      (goto-char (point-min))
      (forward-line (1- count))))
  (recenter 0))