Function: evil-scroll-end-column
evil-scroll-end-column is an interactive and byte-compiled function
defined in evil-commands.el.
Signature
(evil-scroll-end-column)
Documentation
Scroll the window to position the cursor at the end (right side) of the screen.
Warn if hscroll-margin > 0, as cursor will be hscroll-margin chars from
the right edge.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-commands.el
(evil-define-command evil-scroll-end-column ()
"Scroll the window to position the cursor at the end (right side) of the screen.
Warn if `hscroll-margin' > 0, as cursor will be `hscroll-margin' chars from
the right edge."
:repeat nil
:keep-visual t
(interactive)
(let* ((window-hpos (- (current-column) (window-hscroll)))
(dist-from-right-edge (- (window-width) window-hpos)))
(when (< 0 hscroll-margin)
(evil-echo "%s: hscroll-margin = %d" this-command hscroll-margin))
(evil-scroll-column-left (- dist-from-right-edge (abs (* 2 hscroll-margin))))))