branch: master
commit 2f70c568b441277d5df565e585befe627f00b051
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
Revert "Add missing parameter for ag"
This reverts commit c2b0d30515a2fe2741c850b5bb699cf56b69b9d0.
Fixes #861
Re #858
---
counsel.el | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/counsel.el b/counsel.el
index 29fa8d5..832f22b 100644
--- a/counsel.el
+++ b/counsel.el
@@ -1685,7 +1685,7 @@ 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))
@@ -1693,7 +1693,6 @@ If non-nil, EXTRA-AG-ARGS string is appended to 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)