From 5db65dbaa61a2b54322f6400d1ee4b16971e603d Mon Sep 17 00:00:00 2001 From: Oleh Krehel Date: Sat, 12 Sep 2015 13:58:30 +0200 Subject: [PATCH] swiper.el (swiper--ivy): Fix compiler warning --- swiper.el | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/swiper.el b/swiper.el index 258b5301c..3f800f881 100644 --- 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))))) -- 2.39.2