mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
committed by
Henrik Lissner
parent
13b64229a0
commit
310d0e3a5a
@ -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)))
|
||||
|
||||
|
Reference in New Issue
Block a user