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

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

[elpa] master 3d48093 027/348: counsel.el (counsel--gg-sentinel): Add a


From: Oleh Krehel
Subject: [elpa] master 3d48093 027/348: counsel.el (counsel--gg-sentinel): Add a work around
Date: Sat, 8 Apr 2017 11:03:17 -0400 (EDT)

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

    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

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