[Top][All Lists]

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

[elpa] master 3ab3d5f 152/399: swiper.el (swiper-isearch): Check executi

From: Oleh Krehel
Subject: [elpa] master 3ab3d5f 152/399: swiper.el (swiper-isearch): Check executing-kbd-macro
Date: Sat, 20 Jul 2019 14:57:13 -0400 (EDT)

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

    swiper.el (swiper-isearch): Check executing-kbd-macro
    This way, `swiper-isearch' can be used like `isearch' when recording
    The reason for using `line-beginning-position' is for "C-s M-n" to
 swiper.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/swiper.el b/swiper.el
index 60a8d37..a03dd27 100644
--- a/swiper.el
+++ b/swiper.el
@@ -1196,7 +1196,9 @@ come back to the same place as when \"a\" was initially 
   (setq swiper--isearch-point-history
-         (cons "" (line-beginning-position))))
+         (cons "" (if executing-kbd-macro
+                      (point)
+                    (line-beginning-position)))))
   (let ((ivy-fixed-height-minibuffer t)
         (cursor-in-non-selected-windows nil)
         (swiper-min-highlight 1)

reply via email to

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