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

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

[elpa] externals/substitute 67a5f9bcaf 1/2: Reset collection so it is no


From: ELPA Syncer
Subject: [elpa] externals/substitute 67a5f9bcaf 1/2: Reset collection so it is not duplicated
Date: Tue, 17 Jan 2023 00:58:15 -0500 (EST)

branch: externals/substitute
commit 67a5f9bcaf936a88607fe9b327faf07a65fccd47
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>

    Reset collection so it is not duplicated
---
 substitute.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/substitute.el b/substitute.el
index 27c7ede54b..d9000352c4 100644
--- a/substitute.el
+++ b/substitute.el
@@ -184,6 +184,7 @@ Each entry is a list of the symbol and its buffer 
positions.")
 (defun substitute--collect-targets (target scope)
   "Store occurrences of TARGET in SCOPE in `substitute--last-matches'."
   (let ((search-fn (if (eq scope 'above) 're-search-backward 
're-search-forward)))
+    (setq-local substitute--last-matches nil)
     (save-excursion
       (save-restriction
         (substitute--setup-scope target scope)



reply via email to

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