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

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

[elpa] master 73e5799 012/167: Fix counsel-git-grep not updating to 0 ca


From: Oleh Krehel
Subject: [elpa] master 73e5799 012/167: Fix counsel-git-grep not updating to 0 candidates
Date: Tue, 08 Dec 2015 10:49:36 +0000

branch: master
commit 73e5799796f304f60af791c9d8d2271ca0bf7b7a
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    Fix counsel-git-grep not updating to 0 candidates
    
    * counsel.el (counsel--gg-candidates): `ivy--all-candidates' should not
      be nil in order for `ivy--exhibit' to update the minibuffer.
---
 counsel.el |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/counsel.el b/counsel.el
index 158c491..432d141 100644
--- a/counsel.el
+++ b/counsel.el
@@ -699,7 +699,9 @@ The libraries are offered from `load-path'."
   (if (string= event "finished\n")
       (progn
         (with-current-buffer (process-buffer process)
-          (setq ivy--all-candidates (split-string (buffer-string) "\n" t))
+          (setq ivy--all-candidates
+                (or (split-string (buffer-string) "\n" t)
+                    '("")))
           (setq ivy--old-cands ivy--all-candidates))
         (when (= 0 (cl-incf counsel-gg-state))
           (ivy--exhibit)))



reply via email to

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