emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/anzu 413bd09ebc 079/288: Fix different behavior from query


From: ELPA Syncer
Subject: [nongnu] elpa/anzu 413bd09ebc 079/288: Fix different behavior from query-replace-regexp
Date: Thu, 6 Jan 2022 03:58:42 -0500 (EST)

branch: elpa/anzu
commit 413bd09ebcfd82b51f3bc6f5176880070a7d82ad
Author: Syohei YOSHIDA <syohex@gmail.com>
Commit: Syohei YOSHIDA <syohex@gmail.com>

    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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]