branch: externals/ivy-hydra
commit ce70661f37237895a80a717b7bedf119e2ed06da
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
counsel.el (counsel-grep-function): Simplfy and extend
Re #2390
---
counsel.el | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/counsel.el b/counsel.el
index 89de08e..9efe54c 100644
--- a/counsel.el
+++ b/counsel.el
@@ -3026,9 +3026,7 @@ substituted by the search regexp and file, respectively.
Neither
"Grep in the current directory for STRING."
(or
(ivy-more-chars)
- (let* ((regex (counsel--elisp-to-pcre
- (setq ivy--old-re
- (ivy--regex string))))
+ (let* ((regex (counsel--grep-regex string))
(cmd (format counsel-grep-command (shell-quote-argument regex))))
(counsel--async-command
(if (ivy--case-fold-p regex)