branch: master
commit 63b96a1e3175345589956aac253d01cf5278be18
Author: Oleh Krehel <ohwoeo...@gmail.com>
Commit: Oleh Krehel <ohwoeo...@gmail.com>

    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 745d054..e23e354 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)))

Reply via email to