From 63b96a1e3175345589956aac253d01cf5278be18 Mon Sep 17 00:00:00 2001 From: Oleh Krehel Date: Wed, 13 Apr 2016 19:29:12 +0200 Subject: [PATCH 1/1] Fix counsel-grep-last-line bug Need to reset `counsel-grep-last-line' each time the input changes. That var should only be used for cycling the complete cands, not during input updates. --- counsel.el | 1 + 1 file changed, 1 insertion(+) diff --git a/counsel.el b/counsel.el index 745d054b8..e23e354a2 100644 --- a/counsel.el +++ b/counsel.el @@ -141,6 +141,7 @@ Or the time of the last minibuffer update.") (ivy--set-candidates (ivy--sort-maybe cands)) + (setq counsel-grep-last-line nil) (setq counsel--async-duration (time-to-seconds (time-since counsel--async-start))) (let ((re (funcall ivy--regex-function ivy-text))) -- 2.39.2