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

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

[elpa] externals/ivy-hydra 0b5c08a 308/395: counsel.el (counsel-grep-lik


From: Basil L. Contovounesios
Subject: [elpa] externals/ivy-hydra 0b5c08a 308/395: counsel.el (counsel-grep-like-occur): Fix copy-sequence for cl-mapcan
Date: Thu, 25 Feb 2021 08:32:26 -0500 (EST)

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

    counsel.el (counsel-grep-like-occur): Fix copy-sequence for cl-mapcan
---
 counsel.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/counsel.el b/counsel.el
index a3d1332..820f76c 100644
--- a/counsel.el
+++ b/counsel.el
@@ -3063,8 +3063,8 @@ Works for `counsel-git-grep', `counsel-ag', etc."
                    cmd-template
                    (mapconcat #'shell-quote-argument all-args " "))
                 (cl-mapcan
-                 (lambda (x) (if (string= x "%s") all-args (list x)))
-                 (copy-sequence cmd-template))))))
+                 (lambda (x) (if (string= x "%s") (copy-sequence all-args) 
(list x)))
+                 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]