From: Oleh Krehel Date: Wed, 13 Apr 2016 17:29:12 +0000 (+0200) Subject: Fix counsel-grep-last-line bug X-Git-Url: https://code.delx.au/gnu-emacs-elpa/commitdiff_plain/63b96a1e3175345589956aac253d01cf5278be18 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. --- 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)))