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

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

[elpa] master f20b287 62/67: swiper.el (swiper--init): Set `swiper--opoi


From: Oleh Krehel
Subject: [elpa] master f20b287 62/67: swiper.el (swiper--init): Set `swiper--opoint'
Date: Sun, 22 Mar 2015 17:34:12 +0000

branch: master
commit f20b2879a086c45602e75c439eeaecb9523496d0
Author: John Mastro <address@hidden>
Commit: Oleh Krehel <address@hidden>

    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

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