]> code.delx.au - gnu-emacs-elpa/commitdiff
counsel.el: Fix compile warning
authorOleh Krehel <ohwoeowho@gmail.com>
Thu, 14 Apr 2016 12:33:28 +0000 (14:33 +0200)
committerOleh Krehel <ohwoeowho@gmail.com>
Thu, 14 Apr 2016 12:33:28 +0000 (14:33 +0200)
counsel.el

index e23e354a23b428c932d946a4e6da3452b1b1aba8..a27bc684ca5a0b92e8d2379dec657db79d5462a3 100644 (file)
@@ -121,6 +121,8 @@ Or the time of the last minibuffer update.")
     (set-process-sentinel proc (or process-sentinel #'counsel--async-sentinel))
     (set-process-filter proc (or process-filter #'counsel--async-filter))))
 
+(defvar counsel-grep-last-line nil)
+
 (defun counsel--async-sentinel (process event)
   (let ((cands
          (cond ((string= event "finished\n")
@@ -1412,8 +1414,6 @@ the command."
        (format counsel-grep-base-command regex counsel--git-grep-dir))
       nil)))
 
-(defvar counsel-grep-last-line nil)
-
 (defun counsel-grep-action (x)
   (with-ivy-window
     (swiper--cleanup)