branch: master commit 73e5799796f304f60af791c9d8d2271ca0bf7b7a Author: Oleh Krehel <ohwoeo...@gmail.com> Commit: Oleh Krehel <ohwoeo...@gmail.com>
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)))