From 310d0e3a5ab51725c51900fbdf1a079fbe041f29 Mon Sep 17 00:00:00 2001 From: Eyoel Tesfu Date: Tue, 8 Apr 2025 13:15:18 -0500 Subject: [PATCH] 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 --- modules/editor/evil/config.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/editor/evil/config.el b/modules/editor/evil/config.el index 26e506acc..c0ef17c68 100644 --- a/modules/editor/evil/config.el +++ b/modules/editor/evil/config.el @@ -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)))