diff options
author | Zhenya Roubinchtein <zhenya1007@gmail.com> | 2017-09-25 20:58:28 -0700 |
---|---|---|
committer | Zhenya Roubinchtein <zhenya1007@gmail.com> | 2017-09-25 20:58:28 -0700 |
commit | b1ea18468a7e9c97ea13a89bb6f66b3668d65afb (patch) | |
tree | 55848c31f770eac278d0f63bba1c0b228de7fb03 /helm-grep.el | |
parent | 6409a137084088b5768c68c61d0ca34f1e4e4f8d (diff) |
Update to address package maintainer's comments.
Diffstat (limited to 'helm-grep.el')
-rw-r--r-- | helm-grep.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/helm-grep.el b/helm-grep.el index 6817c321..c2552916 100644 --- a/helm-grep.el +++ b/helm-grep.el @@ -420,8 +420,8 @@ It is intended to use as a let-bound variable, DON'T set this globaly.") (or (and norm-com norm-com-ack-p) (and rec-com rec-com-ack-p))))))) -(defun helm-grep--pipe-command-for-grep-command (&optional grep-command) - (pcase (or grep-command (helm-grep-command)) +(defun helm-grep--pipe-command-for-grep-command (smartcase pipe-switches &optional grep-cmd) + (pcase (or grep-cmd (helm-grep-command)) ;; Use grep for GNU regexp based tools. ((or "grep" "zgrep" "git-grep") (format "grep --color=always%s %s" @@ -475,7 +475,7 @@ It is intended to use as a let-bound variable, DON'T set this globaly.") (pipe-switches (mapconcat 'identity helm-grep-pipe-cmd-switches " ")) (pipes (helm-aif (cdr patterns) - (cl-loop with pipcom = (helm-grep--pipe-command-for-grep-command) + (cl-loop with pipcom = (helm-grep--pipe-command-for-grep-command smartcase pipe-switches) for p in it concat (format " | %s %s" pipcom (shell-quote-argument p))) ""))) |