Function: evil-exit-visual-and-repeat
evil-exit-visual-and-repeat is an interactive and byte-compiled
function defined in evil-commands.el.
Signature
(evil-exit-visual-and-repeat EVENT)
Documentation
Exit insert state and repeat event.
This special command should be used if some command called from visual state should actually be called in normal-state. The main reason for doing this is that the repeat system should *not* record the visual state information for some command. This command should be bound to exactly the same event in visual state as the original command is bound in normal state. EVENT is the event that triggered the execution of this command.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-commands.el
(defun evil-exit-visual-and-repeat (event)
"Exit insert state and repeat event.
This special command should be used if some command called from
visual state should actually be called in normal-state. The main
reason for doing this is that the repeat system should *not*
record the visual state information for some command. This
command should be bound to exactly the same event in visual state
as the original command is bound in normal state. EVENT is the
event that triggered the execution of this command."
(interactive "e")
(when (evil-visual-state-p)
(evil-exit-visual-state)
(push event unread-command-events)))