branch: master
commit a1bb702112f6437c03fb1e400ad9b4e95692eec9
Author: Hong Xu <h...@topbug.net>
Commit: Hong Xu <h...@topbug.net>

    Nicer message when counsel-git-grep finds no match
---
 counsel.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/counsel.el b/counsel.el
index 061a85c..69e1794 100644
--- a/counsel.el
+++ b/counsel.el
@@ -1326,6 +1326,7 @@ INITIAL-INPUT can be given as the initial minibuffer 
input."
     (define-key map (kbd "C-x C-d") 'counsel-cd)
     map))
 
+(counsel-set-async-exit-code 'counsel-git-grep 1 "No matches found")
 (ivy-set-occur 'counsel-git-grep 'counsel-git-grep-occur)
 (ivy-set-display-transformer 'counsel-git-grep 'counsel-git-grep-transformer)
 

Reply via email to