branch: master
commit 5b270c6031cf43a165f3a53a0f15bb1782cdf585
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
counsel.el (counsel-git-occur): Fix regex
Fixes #1299
---
counsel.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/counsel.el b/counsel.el
index 5844fb0..18533a8 100644
--- a/counsel.el
+++ b/counsel.el
@@ -1064,7 +1064,8 @@ INITIAL-INPUT can be given as the initial minibuffer
input."
(cd counsel--git-dir)
(counsel-cmd-to-dired
(format "%s | grep -i -E '%s' | xargs ls"
- counsel-git-cmd ivy--old-re)))
+ counsel-git-cmd
+ (counsel-unquote-regex-parens ivy--old-re))))
(defvar counsel-dired-listing-switches "-alh"
"Switches passed to `ls' for `counsel-cmd-to-dired'.")