emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 63b96a1 250/272: Fix counsel-grep-last-line bug


From: Oleh Krehel
Subject: [elpa] master 63b96a1 250/272: Fix counsel-grep-last-line bug
Date: Mon, 25 Apr 2016 10:13:28 +0000

branch: master
commit 63b96a1e3175345589956aac253d01cf5278be18
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    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

[Prev in Thread] Current Thread [Next in Thread]