branch: master
commit f20b2879a086c45602e75c439eeaecb9523496d0
Author: John Mastro <john.b.mas...@gmail.com>
Commit: Oleh Krehel <ohwoeo...@gmail.com>

    swiper.el (swiper--init): Set `swiper--opoint'
    
    (swiper): Don't set `swiper--opoint'
---
 swiper.el |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/swiper.el b/swiper.el
index bd88a51..825a088 100644
--- a/swiper.el
+++ b/swiper.el
@@ -111,12 +111,12 @@
   "`isearch' with an overview.
 When non-nil, INITIAL-INPUT is the initial search pattern."
   (interactive)
-  (setq swiper--opoint (point))
   (swiper--ivy initial-input))
 
 (defun swiper--init ()
   "Perform initialization common to both completion methods."
   (deactivate-mark)
+  (setq swiper--opoint (point))
   (setq swiper--len 0)
   (setq swiper--anchor (line-number-at-pos))
   (setq swiper--window (selected-window)))

Reply via email to