branch: master
commit 8900c1ff91f32429017f94d4624415b9e3f19c5a
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
counsel.el (counsel-find-file-occur): Correct regex passed to grep
Re #1299
---
counsel.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/counsel.el b/counsel.el
index 7f4e29e..5844fb0 100644
--- a/counsel.el
+++ b/counsel.el
@@ -1719,7 +1719,8 @@ 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" ivy--old-re)))
+ "ls | grep -i -E '%s' | xargs ls"
+ (counsel-unquote-regex-parens ivy--old-re))))
(defun counsel-up-directory ()
"Go to the parent directory preselecting the current one.