Skip to content

Commit

Permalink
Revert "Add missing parameter for ag"
Browse files Browse the repository at this point in the history
This reverts commit c2b0d30.

Fixes #861
Re #858
  • Loading branch information
abo-abo committed Jan 26, 2017
1 parent 75f9ceb commit 2f70c56
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions counsel.el
Expand Up @@ -1685,15 +1685,14 @@ If non-nil, EXTRA-AG-ARGS string is appended to BASE-CMD."
(let* ((args-end (string-match " -- " extra-ag-args))
(file (if args-end
(substring-no-properties extra-ag-args (+ args-end 3))
default-directory))
""))
(extra-ag-args (if args-end
(substring-no-properties extra-ag-args 0 args-end)
extra-ag-args))
(ag-cmd (format base-cmd
(concat extra-ag-args
" -- "
(shell-quote-argument regex)
" "
file))))
(if (file-remote-p default-directory)
(split-string (shell-command-to-string ag-cmd) "\n" t)
Expand Down

0 comments on commit 2f70c56

Please sign in to comment.