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

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

[elpa] externals/ivy-hydra 7fd0662 285/395: counsel.el (counsel-grep-lik


From: Basil L. Contovounesios
Subject: [elpa] externals/ivy-hydra 7fd0662 285/395: counsel.el (counsel-grep-like-occur): Fix for marked files in dired
Date: Thu, 25 Feb 2021 08:32:21 -0500 (EST)

branch: externals/ivy-hydra
commit 7fd0662c49b163b3733e84c2ee3977898c0beaf4
Author: Oleh Krehel <ohwoeowho@gmail.com>
Commit: Oleh Krehel <ohwoeowho@gmail.com>

    counsel.el (counsel-grep-like-occur): Fix for marked files in dired
    
    Re #2552
---
 counsel.el | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/counsel.el b/counsel.el
index cc86770..e63ad83 100644
--- a/counsel.el
+++ b/counsel.el
@@ -3143,10 +3143,9 @@ Works for `counsel-git-grep', `counsel-ag', etc."
                   (counsel--format
                    cmd-template
                    (mapconcat #'shell-quote-argument all-args " "))
-                (cl-assert (equal (last cmd-template) '("%s")))
-                (append
-                 (butlast cmd-template)
-                 all-args)))))
+                (cl-mapcan
+                 (lambda (x) (if (string= x "%s") all-args (list x)))
+                 (copy-sequence cmd-template))))))
          (cands (counsel--split-string
                  (if (stringp cmd-template)
                      (shell-command-to-string cmd)



reply via email to

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