mirror of
https://github.com/correl/doom-modeline.git
synced 2024-12-03 19:19:58 +00:00
Merge pull request #126 from seagle0128/revert-125-patch-2
Revert "Fix matches segment mirroring across all buffers"
This commit is contained in:
commit
eb387b9cb8
1 changed files with 1 additions and 6 deletions
|
@ -935,12 +935,7 @@ 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)
|
||||
;; 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)))
|
||||
(advice-add #'evil-force-normal-state :after #'anzu--reset-status))
|
||||
|
||||
(defsubst doom-modeline--anzu ()
|
||||
"Show the match index and total number thereof.
|
||||
|
|
Loading…
Reference in a new issue