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

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

[nongnu] elpa/anzu 07b7802d9d 212/288: Fix literal replace


From: ELPA Syncer
Subject: [nongnu] elpa/anzu 07b7802d9d 212/288: Fix literal replace
Date: Thu, 6 Jan 2022 03:58:53 -0500 (EST)

branch: elpa/anzu
commit 07b7802d9dd61263b32f8b48045b81de873c139f
Author: KOBAYASHI Shigeru <shigeru.kb@gmail.com>
Commit: KOBAYASHI Shigeru <shigeru.kb@gmail.com>

    Fix literal replace
    
    replace-match: third argument requires non-nil, if replace literally.
---
 anzu.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/anzu.el b/anzu.el
index aa7dbae047..5f5e58c1eb 100644
--- a/anzu.el
+++ b/anzu.el
@@ -561,7 +561,7 @@
   (let ((str (buffer-substring-no-properties
               (overlay-start ov) (overlay-end ov))))
     (when (string-match (regexp-quote str) from)
-      (replace-match replaced (not case-fold-search) nil str))))
+      (replace-match replaced (not case-fold-search) t str))))
 
 (defun anzu--append-replaced-string (content buf beg end use-regexp 
overlay-limit from)
   (let ((replacements 0))



reply via email to

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