emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/ivy-hydra ce70661 095/395: counsel.el (counsel-grep-fun


From: Basil L. Contovounesios
Subject: [elpa] externals/ivy-hydra ce70661 095/395: counsel.el (counsel-grep-function): Simplfy and extend
Date: Thu, 25 Feb 2021 08:31:39 -0500 (EST)

branch: externals/ivy-hydra
commit ce70661f37237895a80a717b7bedf119e2ed06da
Author: Oleh Krehel <ohwoeowho@gmail.com>
Commit: Oleh Krehel <ohwoeowho@gmail.com>

    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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]