branch: elpa/anzu
commit 413bd09ebcfd82b51f3bc6f5176880070a7d82ad
Author: Syohei YOSHIDA <[email protected]>
Commit: Syohei YOSHIDA <[email protected]>
Fix different behavior from query-replace-regexp
---
anzu.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/anzu.el b/anzu.el
index 5e97a368b5..538c1b83b6 100644
--- a/anzu.el
+++ b/anzu.el
@@ -296,12 +296,12 @@
(incf count)
(let ((beg (match-beginning 0))
(end (match-end 0)))
- (when (and (>= beg overlay-beg) (<= end overlay-end))
- (anzu--add-overlay str beg end))
(when (= beg end)
(if (eobp)
(setq finish t)
- (forward-char 1)))))
+ (forward-char 1)))
+ (when (and (>= beg overlay-beg) (<= end overlay-end) (not
finish))
+ (anzu--add-overlay str beg end))))
(setq anzu--cached-count count)))))))
(defun anzu--check-minibuffer-input (buf beg end use-regexp overlay-limit)