Function: evil-adjust-cursor

evil-adjust-cursor is a byte-compiled function defined in evil-common.el.

Signature

(evil-adjust-cursor &optional _)

Documentation

Move point one character back if at the end of a non-empty line.

This behavior is controlled by evil-move-beyond-eol.

Source Code

;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-common.el
(defun evil-adjust-cursor (&optional _)
  "Move point one character back if at the end of a non-empty line.
This behavior is controlled by `evil-move-beyond-eol'."
  (and (not evil-move-beyond-eol)
       (eolp)
       (evil-move-cursor-back t)))