Fix anzu issue.

This commit is contained in:
Vincent Zhang 2018-06-19 18:54:02 +08:00
parent 03658c4f28
commit 96d6fda059

View file

@ -217,10 +217,10 @@ If STRICT-P, return nil if no project was found, otherwise return
(advice-add #'anzu--where-is-here :override #'doom-modeline-fix-anzu-count) (advice-add #'anzu--where-is-here :override #'doom-modeline-fix-anzu-count)
;; Avoid anzu conflicts across buffers ;; Avoid anzu conflicts across buffers
(mapc #'make-variable-buffer-local ;; (mapc #'make-variable-buffer-local
'(anzu--total-matched anzu--current-position anzu--state ;; '(anzu--total-matched anzu--current-position anzu--state
anzu--cached-count anzu--cached-positions anzu--last-command ;; anzu--cached-count anzu--cached-positions anzu--last-command
anzu--last-isearch-string anzu--overflow-p)) ;; anzu--last-isearch-string anzu--overflow-p))
;; Ensure anzu state is cleared when searches & iedit are done ;; Ensure anzu state is cleared when searches & iedit are done
(add-hook 'isearch-mode-end-hook #'anzu--reset-status t) (add-hook 'isearch-mode-end-hook #'anzu--reset-status t)