]> code.delx.au - gnu-emacs-elpa/commitdiff
ivy.el (ivy-occur-press): Set counsel-grep-last-line to nil
authorOleh Krehel <ohwoeowho@gmail.com>
Sun, 17 Apr 2016 12:22:17 +0000 (14:22 +0200)
committerOleh Krehel <ohwoeowho@gmail.com>
Sun, 17 Apr 2016 12:22:17 +0000 (14:22 +0200)
ivy.el

diff --git a/ivy.el b/ivy.el
index 1a9ba33d9815c1646e3dfc70ecaaf35319440c63..674e487f92b3e6d62fbaeb77b5ff3ca225a74e2c 100644 (file)
--- a/ivy.el
+++ b/ivy.el
@@ -2994,6 +2994,7 @@ EVENT gives the mouse position."
 (declare-function swiper--cleanup "swiper")
 (declare-function swiper--add-overlays "swiper")
 (defvar ivy-occur-timer nil)
+(defvar counsel-grep-last-line)
 
 (defun ivy-occur-press ()
   "Execute action for the current candidate."
@@ -3020,6 +3021,7 @@ EVENT gives the mouse position."
            (action (ivy--get-action ivy-last))
            (ivy-exit 'done))
       (with-ivy-window
+        (setq counsel-grep-last-line nil)
         (funcall action
                  (if (and (consp coll)
                           (consp (car coll)))