Function: evil-start-undo-step

evil-start-undo-step is a byte-compiled function defined in evil-common.el.

Signature

(evil-start-undo-step &optional CONTINUE)

Documentation

Start a undo step.

All following buffer modifications are grouped together as a single action. If CONTINUE is non-nil, preceding modifications are included. The step is terminated with evil-end-undo-step.

Source Code

;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-common.el
(defun evil-start-undo-step (&optional continue)
  "Start a undo step.
All following buffer modifications are grouped together as a
single action. If CONTINUE is non-nil, preceding modifications
are included. The step is terminated with `evil-end-undo-step'."
  (when (and (listp buffer-undo-list)
             (not evil-in-single-undo))
    (if evil-undo-list-pointer
        (evil-refresh-undo-step)
      (unless (or continue (null (car-safe buffer-undo-list)))
        (undo-boundary))
      (setq evil-undo-list-pointer (or buffer-undo-list t)))))