branch: elpa/anzu
commit a8f75879a84cba8cc6c6cf342e9ba757f331c57d
Author: Syohei YOSHIDA <[email protected]>
Commit: Syohei YOSHIDA <[email protected]>

    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