Function: evil-move-cursor-back

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

Signature

(evil-move-cursor-back &optional FORCE)

Documentation

Move point one character back within the current line.

Contingent on the variable evil-move-cursor-back(var)/evil-move-cursor-back(fun) or the FORCE argument. Movement is constrained to the current field.

Source Code

;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-common.el
(defun evil-move-cursor-back (&optional force)
  "Move point one character back within the current line.
Contingent on the variable `evil-move-cursor-back' or the FORCE
argument.  Movement is constrained to the current field."
  (or (not (or evil-move-cursor-back force))
      (bolp)
      (when (bound-and-true-p visual-line-mode)
        (= (point) (save-excursion (vertical-motion 0) (point))))
      (goto-char (constrain-to-field (1- (point)) (point)))))