branch: elpa/anzu
commit 07b7802d9dd61263b32f8b48045b81de873c139f
Author: KOBAYASHI Shigeru <[email protected]>
Commit: KOBAYASHI Shigeru <[email protected]>
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))