[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master ebd3e29 089/272: swiper.el (swiper--update-input-ivy): Fix

From: Oleh Krehel
Subject: [elpa] master ebd3e29 089/272: swiper.el (swiper--update-input-ivy): Fix a bug
Date: Mon, 25 Apr 2016 10:13:18 +0000

branch: master
commit ebd3e29a39c3d491e9e3dbb9730afb52633997d3
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    swiper.el (swiper--update-input-ivy): Fix a bug
 swiper.el |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/swiper.el b/swiper.el
index c183b1b..841bfe7 100644
--- 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)
             (unless (and (>= (point) (window-start))

reply via email to

[Prev in Thread] Current Thread [Next in Thread]