[Top][All Lists]

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

[elpa] master 0744f57 139/272: counsel.el (counsel-git-grep-occur): Fix

From: Oleh Krehel
Subject: [elpa] master 0744f57 139/272: counsel.el (counsel-git-grep-occur): Fix greedy-nongreedy bug
Date: Mon, 25 Apr 2016 10:13:22 +0000

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

    counsel.el (counsel-git-grep-occur): Fix greedy-nongreedy bug
    The regex has to be greedy for the shell command to succeed.
 counsel.el |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/counsel.el b/counsel.el
index e8597a6..dfe6d94 100644
--- a/counsel.el
+++ b/counsel.el
@@ -885,9 +885,7 @@ When NO-ASYNC is non-nil, do it synchronously."
   (let ((cands (split-string
                  (format counsel-git-grep-cmd
-                         (if (stringp ivy--old-re)
-                             ivy--old-re
-                           (caar ivy--old-re))))
+                         (setq ivy--old-re (ivy--regex ivy-text t))))
     ;; Need precise number of header lines for `wgrep' to work.

reply via email to

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