]> code.delx.au - gnu-emacs-elpa/commitdiff
swiper.el (swiper--ivy): Don't double-quote preselect
authorOleh Krehel <ohwoeowho@gmail.com>
Mon, 25 May 2015 20:28:36 +0000 (22:28 +0200)
committerOleh Krehel <ohwoeowho@gmail.com>
Mon, 25 May 2015 20:28:36 +0000 (22:28 +0200)
The :preselect is already quoted in `ivy--preselect-index'.

swiper.el

index 698e5dddec98921e47a1dc0be9a7757a2bf61fd0..671f7d2fba471dfcdb999effc45a6b2268f160eb 100644 (file)
--- 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