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

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

[elpa] externals/ivy-hydra a007ba6 334/395: Fix for counsel-grep-like-oc


From: Basil L. Contovounesios
Subject: [elpa] externals/ivy-hydra a007ba6 334/395: Fix for counsel-grep-like-occur
Date: Thu, 25 Feb 2021 08:32:32 -0500 (EST)

branch: externals/ivy-hydra
commit a007ba637d6c6e232fb894e10a40cfc1142a24ae
Author: John McFarland <mcfarljm@gmail.com>
Commit: Oleh Krehel <ohwoeowho@gmail.com>

    Fix for counsel-grep-like-occur
    
    Fix wrong-type-argument when calling counsel-grep-like-occur.  Suspect
    that it was simply a typo to check (stringp cmd-template) instead
    of (stringp cmd) prior to calling the command.
    
    Fixes #2571
    Fixes #2600
---
 counsel.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/counsel.el b/counsel.el
index 5ec26e7..32a93bd 100644
--- a/counsel.el
+++ b/counsel.el
@@ -3069,7 +3069,7 @@ Works for `counsel-git-grep', `counsel-ag', etc."
                  (lambda (x) (if (string= x "%s") (copy-sequence all-args) 
(list x)))
                  cmd-template)))))
          (cands (counsel--split-string
-                 (if (stringp cmd-template)
+                 (if (stringp cmd)
                      (shell-command-to-string cmd)
                    (counsel--call cmd)))))
     (swiper--occur-insert-lines (mapcar #'counsel--normalize-grep-match 
cands))))



reply via email to

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