Function: evil-update-replace-alist
evil-update-replace-alist is a byte-compiled function defined in
evil-states.el.
Signature
(evil-update-replace-alist OPOINT COUNT CHARS-TO-DELETE &optional OFFSET)
Documentation
Add CHARS-TO-DELETE chars to evil-replace-alist, starting at OPOINT.
If COUNT is greater than CHARS-TO-DELETE, pad the alist with nils. Decrement recorded position by optional offset, or 0.
Source Code
;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-states.el
(defun evil-update-replace-alist (opoint count chars-to-delete &optional offset)
"Add CHARS-TO-DELETE chars to evil-replace-alist, starting at OPOINT.
If COUNT is greater than CHARS-TO-DELETE, pad the alist with nils.
Decrement recorded position by optional offset, or 0."
(when (evil-replace-state-p)
(dotimes (c count)
(let ((pos (+ c opoint)))
(add-to-list 'evil-replace-alist
(cons (- pos (or offset 0)) (when (< c chars-to-delete)
(char-after pos))))))))