branch: master
commit c580fe970cfd4a9f95e46393fbde01a9536ec6d3
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
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)