[Top][All Lists]

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

[elpa] master 31a554d 130/399: swiper.el (swiper-isearch): Anchor to lin

From: Oleh Krehel
Subject: [elpa] master 31a554d 130/399: swiper.el (swiper-isearch): Anchor to line-beginning-position
Date: Sat, 20 Jul 2019 14:57:09 -0400 (EDT)

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

    swiper.el (swiper-isearch): Anchor to line-beginning-position
    So that if we insert symbol-at-point, it will be selected.
 swiper.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/swiper.el b/swiper.el
index 4739ac0..a480cf9 100644
--- a/swiper.el
+++ b/swiper.el
@@ -1147,7 +1147,7 @@ See `ivy-format-function' for further information."
   "A `swiper' that's not line-based."
-  (setq swiper--isearch-last-point (point))
+  (setq swiper--isearch-last-point (line-beginning-position))
   (let (res)

reply via email to

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