branch: externals/ivy-hydra
commit a007ba637d6c6e232fb894e10a40cfc1142a24ae
Author: John McFarland <[email protected]>
Commit: Oleh Krehel <[email protected]>
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))))