]> code.delx.au - gnu-emacs-elpa/commitdiff
swiper.el (swiper--update-input-ivy): Fix a bug
authorOleh Krehel <ohwoeowho@gmail.com>
Thu, 11 Feb 2016 16:22:21 +0000 (17:22 +0100)
committerOleh Krehel <ohwoeowho@gmail.com>
Thu, 11 Feb 2016 16:22:21 +0000 (17:22 +0100)
swiper.el

index c183b1b5672413bc5b7ca3a1f9a34833957d6dfc..841bfe7ceb96bcdd2751d87ff0f45fda021807d4 100644 (file)
--- a/swiper.el
+++ b/swiper.el
@@ -505,8 +505,8 @@ Matched candidates should have `swiper-invocation-face'."
                   (when swiper--current-match-start
                     (goto-char swiper--current-match-start))
                 (setq swiper--current-line num))
-              (re-search-forward re (line-end-position) t)
-              (setq swiper--current-match-start (match-beginning 0)))
+              (when (re-search-forward re (line-end-position) t)
+                (setq swiper--current-match-start (match-beginning 0))))
             (isearch-range-invisible (line-beginning-position)
                                      (line-end-position))
             (unless (and (>= (point) (window-start))