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

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

[elpa] master c580fe9 108/167: ivy.el (ivy-occur): Give full counsel-git


From: Oleh Krehel
Subject: [elpa] master c580fe9 108/167: ivy.el (ivy-occur): Give full counsel-git-grep cands
Date: Tue, 08 Dec 2015 10:50:21 +0000

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

    ivy.el (ivy-occur): Give full counsel-git-grep cands
    
    This means that the " | head -n 200" speed-up isn't used and full
    candidates are returned.
---
 ivy.el |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/ivy.el b/ivy.el
index a486f2b..eecff00 100644
--- a/ivy.el
+++ b/ivy.el
@@ -2188,7 +2188,14 @@ It's possible to have an unlimited amount of *ivy-occur* 
buffers."
         (do-grep (eq (ivy-state-caller ivy-last) 'counsel-git-grep)))
     (with-current-buffer buffer
       (if do-grep
-          (ivy-occur-grep-mode)
+          (progn
+            (setq ivy--old-cands
+                  (split-string
+                   (shell-command-to-string
+                    (format counsel-git-grep-cmd ivy--old-re))
+                   "\n"
+                   t))
+            (ivy-occur-grep-mode))
         (ivy-occur-mode))
       (setf (ivy-state-text ivy-last) ivy-text)
       (setq ivy-occur-last ivy-last)



reply via email to

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