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

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

[elpa] master beffa78 323/348: counsel.el (counsel-grep-base-command): S


From: Oleh Krehel
Subject: [elpa] master beffa78 323/348: counsel.el (counsel-grep-base-command): Single quote regex
Date: Sat, 8 Apr 2017 11:04:23 -0400 (EDT)

branch: master
commit beffa78885517beaad2da50accc339f9346f94ee
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    counsel.el (counsel-grep-base-command): Single quote regex
---
 counsel.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/counsel.el b/counsel.el
index a8efe8d..a2d3945 100644
--- a/counsel.el
+++ b/counsel.el
@@ -1849,7 +1849,7 @@ RG-PROMPT, if non-nil, is passed as `ivy-read' prompt 
argument. "
       cands))))
 
 ;;** `counsel-grep'
-(defcustom counsel-grep-base-command "grep -nE \"%s\" %s"
+(defcustom counsel-grep-base-command "grep -nE '%s' %s"
   "Format string to use in `cousel-grep-function' to construct
 the command."
   :type 'string
@@ -1863,7 +1863,7 @@ the command."
                   (setq ivy--old-re
                         (ivy--regex string)))))
       (counsel--async-command
-       (format counsel-grep-base-command (shell-quote-argument regex)
+       (format counsel-grep-base-command regex
                (shell-quote-argument counsel--git-grep-dir)))
       nil)))
 



reply via email to

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