From 17d8d6e6174f55bd8faf7dffcdce6f918f2e3caf Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 28 Feb 2019 15:12:15 -0500 Subject: [PATCH] Fix matches segment mirroring across all buffers --- doom-modeline-segments.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/doom-modeline-segments.el b/doom-modeline-segments.el index 4a4c4c5..11977cb 100644 --- a/doom-modeline-segments.el +++ b/doom-modeline-segments.el @@ -933,7 +933,12 @@ lines are selected, or the NxM dimensions of a block selection." (with-eval-after-load 'anzu (add-hook 'isearch-mode-end-hook #'anzu--reset-status t) (add-hook 'iedit-mode-end-hook #'anzu--reset-status) - (advice-add #'evil-force-normal-state :after #'anzu--reset-status)) + (advice-add #'evil-force-normal-state :after #'anzu--reset-status) + ;; Fix matches segment mirroring across all buffers + (mapc #'make-variable-buffer-local + '(anzu--total-matched anzu--current-position anzu--state + anzu--cached-count anzu--cached-positions anzu--last-command + anzu--last-isearch-string anzu--overflow-p))) (defsubst doom-modeline--anzu () "Show the match index and total number thereof.