branch: master
commit 3d480938885a2ca20a4e0329fe844096432aefc6
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>

    counsel.el (counsel--gg-sentinel): Add a work around
    
    I've encountered "git-grep" returning exit code 141, even though the
    output was OK.
---
 counsel.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/counsel.el b/counsel.el
index e4b2bc9..6eb5c5f 100644
--- a/counsel.el
+++ b/counsel.el
@@ -929,7 +929,8 @@ INITIAL-INPUT can be given as the initial minibuffer input."
      #'counsel--gg-sentinel)))
 
 (defun counsel--gg-sentinel (process event)
-  (if (string= event "finished\n")
+  (if (member event '("finished\n"
+                      "exited abnormally with code 141\n"))
       (progn
         (with-current-buffer (process-buffer process)
           (setq ivy--all-candidates

Reply via email to