summaryrefslogtreecommitdiff
path: root/helm-grep.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2016-06-12 13:03:31 +0200
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2016-06-12 13:10:27 +0200
commit4c9e2b5deb6f388ee097e7c58db8ee58fec4e239 (patch)
tree5b04a3852f328a440853ba90447dc63a1f595498 /helm-grep.el
parent2679d6b2d846b5504b0664251418bd26fc809234 (diff)
Fix source name in helm grep and remove commented line.
* helm-grep.el (helm-do-grep-1): Use helm-grep-command grep arg.
Diffstat (limited to 'helm-grep.el')
-rw-r--r--helm-grep.el9
1 files changed, 2 insertions, 7 deletions
diff --git a/helm-grep.el b/helm-grep.el
index b9addf4a..1ff2ee3c 100644
--- a/helm-grep.el
+++ b/helm-grep.el
@@ -955,11 +955,7 @@ in recurse, and ignore EXTS, search being made on
(helm-grep-read-ack-type)))
(follow (and helm-follow-mode-persistent
(assoc-default 'follow helm-source-grep)))
- (src-name (if (eq grep 'zgrep)
- "Zgrep"
- (capitalize (if recurse
- (helm-grep-command t)
- (helm-grep-command))))))
+ (src-name (capitalize (helm-grep-command recurse grep))))
;; When called as action from an other source e.g *-find-files
;; we have to kill action buffer.
(when (get-buffer helm-action-buffer)
@@ -1406,8 +1402,7 @@ at DIRECTORY.
Arg DEFAULT is what you will have with `next-history-element',
arg INPUT is what you will have by default at prompt on startup."
(require 'vc)
- (let* (;;(helm-grep-default-command helm-grep-git-grep-command)
- helm-grep-default-recurse-command
+ (let* (helm-grep-default-recurse-command
;; Expand filename of each candidate with the git root dir.
;; The filename will be in the help-echo prop.
(helm-grep-default-directory-fn (lambda ()