Skip to content

Commit

Permalink
Fixes emacsorphanage#12: prevent displaying (0/0) when nothing in sea…
Browse files Browse the repository at this point in the history
…rch-ring
  • Loading branch information
tttuuu888 committed Nov 8, 2020
1 parent d3f6ed4 commit 1836963
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion evil-anzu.el
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@
(require 'anzu)

(defun evil-anzu-start-search (string forward &optional regexp-p start)
(when anzu-mode
(when (and anzu-mode
(if evil-regexp-search
(car-safe regexp-search-ring)
(car-safe search-ring)))
(anzu--cons-mode-line-search)
(let ((isearch-regexp regexp-p))
(anzu--update string))))
Expand Down

0 comments on commit 1836963

Please sign in to comment.