Function: evil-ex-hl-set-region

evil-ex-hl-set-region is a byte-compiled function defined in evil-search.el.

Signature

(evil-ex-hl-set-region NAME BEG END &optional TYPE)

Documentation

Set minimal and maximal position of highlight NAME to BEG and END.

Source Code

;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-search.el
(defun evil-ex-hl-set-region (name beg end &optional _type)
  "Set minimal and maximal position of highlight NAME to BEG and END."
  (let ((hl (cdr (assq name evil-ex-active-highlights-alist))))
    (when hl
      (setf (evil-ex-hl-min hl) beg
            (evil-ex-hl-max hl) end)
      (evil-ex-hl-idle-update))))