Function: evil-undo

evil-undo is an interactive and byte-compiled function defined in evil-commands.el.

Signature

(evil-undo COUNT)

Documentation

Undo COUNT changes in buffer using evil-undo-function.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-commands.el
(evil-define-command evil-undo (count)
  "Undo COUNT changes in buffer using `evil-undo-function'."
  :repeat abort
  :jump t
  (interactive "*p")
  (evil--check-undo-system)
  (let ((state-before evil-state))
    (unless (memq state-before '(normal visual)) (evil-normal-state))
    (funcall evil-undo-function count)
    (unless (memq state-before '(normal visual)) (evil-change-state state-before))))