[Top][All Lists]

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

[elpa] master 9c4cdb7 025/184: swiper.el (swiper-isearch-action): Fix fo

From: Oleh Krehel
Subject: [elpa] master 9c4cdb7 025/184: swiper.el (swiper-isearch-action): Fix for ivy-occur
Date: Wed, 16 Oct 2019 13:14:42 -0400 (EDT)

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

    swiper.el (swiper-isearch-action): Fix for ivy-occur
    This reverts commit b9f3e3b1c52a6630e1499cea7bab7f9cef4bb5c6.
 swiper.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/swiper.el b/swiper.el
index da0f19c..96a36b5 100644
--- a/swiper.el
+++ b/swiper.el
@@ -1400,7 +1400,9 @@ that we search only for one character."
 (defun swiper-isearch-action (x)
   "Move to X for `swiper-isearch'."
-  (if (numberp x)
+  (if (or (numberp x)
+          (and (> (length x) 0)
+               (setq x (get-text-property 0 'point x))))
         (goto-char x)
         (when (and (or (eq this-command 'ivy-previous-line-or-history)

reply via email to

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