Function: evil-repeat-keystrokes

evil-repeat-keystrokes is a byte-compiled function defined in evil-repeat.el.

Signature

(evil-repeat-keystrokes FLAG)

Documentation

Repeation recording function for commands that are repeated by keystrokes.

Source Code

;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-repeat.el
(defun evil-repeat-keystrokes (flag)
  "Repeation recording function for commands that are repeated by keystrokes."
  (cond
   ((eq flag 'pre)
    (when evil-this-register
      (evil-repeat-record
       `(set evil-this-register ,evil-this-register)))
    (setq evil-repeat-keys (evil-this-command-keys)))
   ((memq flag '(post pre-read-key-sequence))
    (evil-repeat-record (if (zerop (length (evil-this-command-keys t)))
                            evil-repeat-keys
                          (evil-this-command-keys t)))
    ;; erase commands keys to prevent double recording
    (evil-clear-command-keys))))