Function: evil-repeat-find-char
evil-repeat-find-char is an interactive and byte-compiled function
defined in evil-commands.el.
Signature
(evil-repeat-find-char &optional COUNT)
Documentation
Repeat the last find COUNT times.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-commands.el
(evil-define-motion evil-repeat-find-char (count)
"Repeat the last find COUNT times."
:type inclusive
(setq count (or count 1))
(cl-destructuring-bind (cmd char fwd)
(or evil-last-find (user-error "No previous search"))
;; ensure count is non-negative
(when (< count 0)
(setq count (- count)
fwd (not fwd)))
;; skip next character when repeating t or T
(and (eq cmd #'evil-find-char-to)
evil-repeat-find-to-skip-next
(= count 1)
(eql (if fwd (char-after (1+ (point))) (char-before)) char)
(setq count (1+ count)))
(let (evil-last-find)
(funcall cmd (if fwd count (- count)) char)
(unless (nth 2 evil-last-find)
(setq evil-this-type 'exclusive)))))