Function: evil-repeat
evil-repeat is an interactive and byte-compiled function defined in
evil-repeat.el.
Signature
(evil-repeat COUNT &optional SAVE-POINT)
Documentation
Repeat the last editing command with count replaced by COUNT.
If SAVE-POINT is non-nil, do not move point.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-repeat.el
(evil-define-command evil-repeat (count &optional save-point)
"Repeat the last editing command with count replaced by COUNT.
If SAVE-POINT is non-nil, do not move point."
:repeat ignore
:suppress-operator t
(interactive (list current-prefix-arg
(not evil-repeat-move-cursor)))
(cond
((null evil-repeat-ring)
(error "Already executing repeat"))
(save-point
(save-excursion
(evil-repeat count)))
(t
(unwind-protect
(let ((evil-last-find-temp evil-last-find)
(confirm-kill-emacs t)
(kill-buffer-hook
(cons #'(lambda ()
(user-error "Cannot delete buffer in repeat command"))
kill-buffer-hook))
(undo-pointer buffer-undo-list))
(evil-with-single-undo
(setq evil-last-repeat (list (point) count undo-pointer))
(evil-execute-repeat-info-with-count
count (ring-ref evil-repeat-ring 0))
(setq evil-last-find evil-last-find-temp)))
(if (eq 'evil-execute-in-normal-state last-command)
(evil-change-state evil--execute-normal-return-state)
(evil-normal-state))))))