Function: evil-quoted-insert
evil-quoted-insert is an interactive and byte-compiled function
defined in evil-commands.el.
Signature
(evil-quoted-insert COUNT)
Documentation
Like quoted-insert but delete COUNT chars forward in replace state.
Adds a "^" overlay as an input prompt.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-commands.el
(defun evil-quoted-insert (count)
"Like `quoted-insert' but delete COUNT chars forward in replace state.
Adds a \"^\" overlay as an input prompt."
(interactive "p")
(let* ((opoint (point))
chars-to-delete
(ov (if (not (evil-replace-state-p))
(make-overlay opoint opoint)
(setq chars-to-delete (min (- (line-end-position) opoint) count))
(evil-update-replace-alist opoint count chars-to-delete)
(make-overlay opoint (+ chars-to-delete opoint)))))
(unwind-protect
(progn
(overlay-put ov 'invisible t)
(overlay-put ov 'after-string #("^" 0 1 (face escape-glyph cursor 1)))
(let (overwrite-mode) ; Force `read-quoted-char'
(quoted-insert count))
(when chars-to-delete (delete-char chars-to-delete)))
(delete-overlay ov))))