Skip to content

Commit

Permalink
Quote args in AG.
Browse files Browse the repository at this point in the history
* helm-grep.el (helm-grep-ag-init): Do it.
  • Loading branch information
thierryvolpiatto committed Sep 30, 2015
1 parent 3ee3df4 commit 7c35351
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helm-grep.el
Expand Up @@ -1196,8 +1196,8 @@ You can use safely \"--color\" (default)."

(defun helm-grep-ag-init (directory)
(let ((cmd-line (format helm-grep-ag-command
helm-pattern
directory)))
(shell-quote-argument helm-pattern)
(shell-quote-argument directory))))
(set (make-local-variable 'helm-grep-last-cmd-line) cmd-line)
(prog1
(start-process-shell-command
Expand Down

0 comments on commit 7c35351

Please sign in to comment.