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

    Fix counsel-grep for files with spaces in the name
    
    Fixes #700
---
 counsel.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/counsel.el b/counsel.el
index f9e765c..d11f8d1 100644
--- a/counsel.el
+++ b/counsel.el
@@ -1700,7 +1700,8 @@ the command."
                   (setq ivy--old-re
                         (ivy--regex string)))))
       (counsel--async-command
-       (format counsel-grep-base-command regex counsel--git-grep-dir))
+       (format counsel-grep-base-command regex
+               (shell-quote-argument counsel--git-grep-dir)))
       nil)))
 
 (defun counsel-grep-action (x)

Reply via email to