Function: evil--ex-performant-global-delete

evil--ex-performant-global-delete is a byte-compiled function defined in evil-commands.el.

Signature

(evil--ex-performant-global-delete BEG END PATTERN INVERT)

Documentation

Use fast functions for fast line deletion.

Delete lines between BEG & END which match PATTERN. Use evil-flush-lines if INVERT is nil, or evil-keep-lines if not.

Source Code

;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-commands.el
(defun evil--ex-performant-global-delete (beg end pattern invert)
  "Use fast functions for fast line deletion.
Delete lines between BEG & END which match PATTERN.
Use `evil-flush-lines' if INVERT is nil, or `evil-keep-lines' if not."
  (goto-char end)
  (re-search-backward pattern beg t)
  (let ((end-marker (point-marker)))
    (if invert
        (evil-keep-lines pattern beg end)
      (evil-flush-lines pattern beg end))
    (goto-char end-marker)
    (set-marker end-marker nil)))