branch: master
commit 23ffd5c344c52daaf519c112b1073749624efc0d
Author: Oleh Krehel <ohwoeo...@gmail.com>
Commit: Oleh Krehel <ohwoeo...@gmail.com>

    swiper.el (swiper--ivy): Don't double-quote preselect
    
    The :preselect is already quoted in `ivy--preselect-index'.
---
 swiper.el |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/swiper.el b/swiper.el
index 698e5dd..671f7d2 100644
--- a/swiper.el
+++ b/swiper.el
@@ -233,10 +233,9 @@ Please remove it and update the \"swiper\" package."))
         (preselect (format
                     swiper--format-spec
                     (line-number-at-pos)
-                    (regexp-quote
-                     (buffer-substring-no-properties
-                      (line-beginning-position)
-                      (line-end-position)))))
+                    (buffer-substring-no-properties
+                     (line-beginning-position)
+                     (line-end-position))))
         res)
     (unwind-protect
          (setq res (ivy-read

Reply via email to