]> code.delx.au - gnu-emacs-elpa/commitdiff
Fix counsel-grep-last-line bug
authorOleh Krehel <ohwoeowho@gmail.com>
Wed, 13 Apr 2016 17:29:12 +0000 (19:29 +0200)
committerOleh Krehel <ohwoeowho@gmail.com>
Wed, 13 Apr 2016 17:29:12 +0000 (19:29 +0200)
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

index 745d054b8c333a0fe4acf4717c49ca31ee59d347..e23e354a23b428c932d946a4e6da3452b1b1aba8 100644 (file)
@@ -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)))