Skip to content

Commit

Permalink
Stop counsel-ag-occur from breaking when search string begins with "-"
Browse files Browse the repository at this point in the history
Fixes #1048
  • Loading branch information
purcell authored and abo-abo committed Jun 5, 2017
1 parent 99e6428 commit 2d29191
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion counsel.el
Expand Up @@ -1842,7 +1842,7 @@ If non-nil, EXTRA-AG-ARGS string is appended to BASE-CMD."
(match-string 1 (buffer-name)))))))
(cands (split-string
(shell-command-to-string
(format counsel-ag-base-command (shell-quote-argument regex)))
(format counsel-ag-base-command (concat "-- " (shell-quote-argument regex))))
"\n"
t)))
;; Need precise number of header lines for `wgrep' to work.
Expand Down

0 comments on commit 2d29191

Please sign in to comment.