Function: evil-stop-track-last-insertion
evil-stop-track-last-insertion is a byte-compiled function defined in
evil-common.el.
Signature
(evil-stop-track-last-insertion)
Documentation
Stop tracking the last insertion.
The tracked insertion is set to evil-last-insertion.
Source Code
;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-common.el
(defun evil-stop-track-last-insertion ()
"Stop tracking the last insertion.
The tracked insertion is set to `evil-last-insertion'."
(setq evil-last-insertion
(and evil-current-insertion
;; Check whether the insertion range is a valid buffer
;; range. If a buffer modification is done from within
;; another change hook or modification-hook (yasnippet
;; does this using overlay modification-hooks), then the
;; insertion information may be invalid. There is no way
;; to detect this situation, but at least we should
;; ensure that no error occurs (see bug #272).
(>= (car evil-current-insertion) (point-min))
(<= (cdr evil-current-insertion) (point-max))
(buffer-substring-no-properties (car evil-current-insertion)
(cdr evil-current-insertion))))
(remove-hook 'after-change-functions #'evil-track-last-insertion t))