branch: master commit 0744f57ce3f5922fe67cfec9b729a9ad5d1d3569 Author: Oleh Krehel <ohwoeo...@gmail.com> Commit: Oleh Krehel <ohwoeo...@gmail.com>
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 (shell-command-to-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)))) "\n" t))) ;; Need precise number of header lines for `wgrep' to work.