branch: master
commit 9df660c8c305c418a9f98ff5c2afe7504833727c
Author: Oleh Krehel <ohwoeo...@gmail.com>
Commit: Oleh Krehel <ohwoeo...@gmail.com>

    swiper.el (swiper-query-replace): Don't miss the first
    
    * swiper.el (swiper-query-replace): Since the point is always after the
      matching thing in swiper, it's necessary to move it before it in order
      for `perform-replace' not to skip it.
    
    Fixes #144
---
 swiper.el |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/swiper.el b/swiper.el
index 8312852..c94e896 100644
--- a/swiper.el
+++ b/swiper.el
@@ -97,6 +97,7 @@
       (delete-minibuffer-contents)
       (ivy-set-action (lambda (_)
                         (with-selected-window swiper--window
+                          (move-beginning-of-line 1)
                           (perform-replace from to
                                            t t nil))))
       (swiper--cleanup)

Reply via email to