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

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

[nongnu] elpa/anzu a8f75879a8 063/288: Don't evaluate not regexp replace


From: ELPA Syncer
Subject: [nongnu] elpa/anzu a8f75879a8 063/288: Don't evaluate not regexp replacement
Date: Thu, 6 Jan 2022 03:58:40 -0500 (EST)

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

    Don't evaluate not regexp replacement
---
 anzu.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/anzu.el b/anzu.el
index 8d87749e7a..1826bd5b31 100644
--- a/anzu.el
+++ b/anzu.el
@@ -379,7 +379,9 @@
               (replace (anzu--calculate-replace-text content use-regexp)))
           (dolist (ov (overlays-in beg overlay-end))
             (when (overlay-get ov 'anzu-replace)
-              (let ((replace-evaled (anzu--evaluate-occurrence ov replace)))
+              (let ((replace-evaled (if use-regexp
+                                        (anzu--evaluate-occurrence ov replace)
+                                      replace)))
                 (overlay-put ov 'after-string
                              (propertize replace-evaled 'face 
'anzu-replace-to))))))))))
 



reply via email to

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