fix(evil): clear modeline search highlights on zero matches

Prevent anzu-mode's zero-match state from persisting in the modeline
on doom/escape invocations
This commit is contained in:
Eyoel Tesfu
2025-04-08 13:15:18 -05:00
committed by Henrik Lissner
parent 13b64229a0
commit 310d0e3a5a

View File

@ -117,7 +117,8 @@ directives. By default, this only recognizes C directives.")
(add-hook! 'doom-escape-hook
(defun +evil-disable-ex-highlights-h ()
"Disable ex search buffer highlights."
(when (evil-ex-hl-active-p 'evil-ex-search)
(when (or (evil-ex-hl-active-p 'evil-ex-search)
(bound-and-true-p anzu--state))
(evil-ex-nohighlight)
t)))