]> code.delx.au - gnu-emacs-elpa/commitdiff
swiper.el (swiper--ivy): Fix compiler warning
authorOleh Krehel <ohwoeowho@gmail.com>
Sat, 12 Sep 2015 11:58:30 +0000 (13:58 +0200)
committerOleh Krehel <ohwoeowho@gmail.com>
Sat, 12 Sep 2015 11:58:30 +0000 (13:58 +0200)
swiper.el

index 258b5301cf9fd18ec91f1d917cf4750bdb10c374..3f800f881576c3f8ed90970420f76ddb85b4f21d 100644 (file)
--- a/swiper.el
+++ b/swiper.el
@@ -266,20 +266,19 @@ Please remove it and update the \"swiper\" package."))
   (let ((candidates (swiper--candidates))
         (preselect (buffer-substring-no-properties
                     (line-beginning-position)
-                    (line-end-position)))
-        res)
+                    (line-end-position))))
     (unwind-protect
-         (setq res (ivy-read
-                    "Swiper: "
-                    candidates
-                    :initial-input initial-input
-                    :keymap swiper-map
-                    :preselect preselect
-                    :require-match t
-                    :update-fn #'swiper--update-input-ivy
-                    :unwind #'swiper--cleanup
-                    :re-builder #'swiper--re-builder
-                    :history 'swiper-history))
+         (ivy-read
+          "Swiper: "
+          candidates
+          :initial-input initial-input
+          :keymap swiper-map
+          :preselect preselect
+          :require-match t
+          :update-fn #'swiper--update-input-ivy
+          :unwind #'swiper--cleanup
+          :re-builder #'swiper--re-builder
+          :history 'swiper-history)
       (if (null ivy-exit)
           (goto-char swiper--opoint)
         (swiper--action ivy--current ivy-text)))))