(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")
(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)