branch: master
commit 70f8f4ac94d9ab72b3f4aba1083cfbf750813df6
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>

    counsel.el (counsel-find-file-occur): Use xargs -d '\n'
    
    Fixes #1323
---
 counsel.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/counsel.el b/counsel.el
index 2bcdf5b..a4bb0b0 100644
--- a/counsel.el
+++ b/counsel.el
@@ -1728,7 +1728,7 @@ When INITIAL-INPUT is non-nil, use it in the minibuffer 
during completion."
   (cd ivy--directory)
   (counsel-cmd-to-dired
    (format
-    "ls | grep -i -E '%s' | xargs ls"
+    "ls | grep -i -E '%s' | xargs -d '\n' ls"
     (counsel-unquote-regex-parens ivy--old-re))))
 
 (defun counsel-up-directory ()

Reply via email to