branch: master
commit ea260d13444a5a07205635a5b9fc321afaf92bdd
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
counsel.el (counsel-grep-occur): Quote the directory name
Fixes #811
---
counsel.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/counsel.el b/counsel.el
index 15703cc..09570e7 100644
--- a/counsel.el
+++ b/counsel.el
@@ -1867,7 +1867,7 @@ the command."
(ivy--regex
(progn (string-match "\"\\(.*\\)\"" (buffer-name))
(match-string 1 (buffer-name))) t)))
- counsel--git-grep-dir))
+ (shell-quote-argument counsel--git-grep-dir)))
"\n" t))
(file (file-name-nondirectory counsel--git-grep-dir)))
;; Need precise number of header lines for `wgrep' to work.