emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] master 9df660c 51/90: swiper.el (swiper-query-replace): Don't mis


From: Oleh Krehel
Subject: [elpa] master 9df660c 51/90: swiper.el (swiper-query-replace): Don't miss the first
Date: Tue, 30 Jun 2015 07:28:32 +0000

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

    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

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