Function: evil-window-digit-argument
evil-window-digit-argument is an interactive and byte-compiled
function defined in evil-commands.el.
Signature
(evil-window-digit-argument)
Documentation
Like digit-argument but maintains the window map.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-commands.el
(defun evil-window-digit-argument ()
"Like `digit-argument' but maintains the window map."
(interactive)
(unless (eq 'evil-window-digit-argument last-command)
(set-transient-map evil-window-map #'evil--window-keep-pred #'evil--window-on-exit))
(let* ((char (if (integerp last-command-event)
last-command-event
(get last-command-event 'ascii-character)))
(digit (- (logand char ?\177) ?0)))
(setq evil--window-digit (+ (* 10 (or evil--window-digit 0)) digit))))