branch: master
commit 5d373be194e21f3e29a03fb498b901fcc5e128f9
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>

    swiper.el (swiper-query-replace): Disable read-only for the duration
    
    Re #1273
---
 swiper.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/swiper.el b/swiper.el
index 5699d95..ae24554 100644
--- a/swiper.el
+++ b/swiper.el
@@ -111,8 +111,9 @@
        (lambda (_)
          (with-ivy-window
            (move-beginning-of-line 1)
-           (perform-replace from to
-                            t t nil)))))))
+           (let ((inhibit-read-only t))
+             (perform-replace from to
+                              t t nil))))))))
 
 (defun swiper-all-query-replace ()
   "Start `query-replace' with string to replace from last search string."

Reply via email to