From 5dfe1deccb74225612c35ce26358e768d415e7dc Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Mon, 29 Oct 2018 21:25:26 +0800 Subject: [PATCH] Reset anzu status after back to evil normal state. --- doom-modeline.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doom-modeline.el b/doom-modeline.el index 71447c0..119d38e 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -377,8 +377,8 @@ active.") ;; Ensure anzu state is cleared when searches & iedit are done (add-hook 'isearch-mode-end-hook #'anzu--reset-status t) -;; (add-hook '+evil-esc-hook #'anzu--reset-status t) (add-hook 'iedit-mode-end-hook #'anzu--reset-status) +(advice-add #'evil-force-normal-state :after #'anzu--reset-status) ;; Keep `doom-modeline-current-window' up-to-date (defvar doom-modeline-current-window (frame-selected-window))