Skip to content

Commit

Permalink
Merge pull request #100 from epmatsw/0.30+_compatibility
Browse files Browse the repository at this point in the history
Fix for versions after 0.29
  • Loading branch information
losingkeys committed May 11, 2015
2 parents f05f313 + 6ac76d9 commit 97f0524
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/ag.vim
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ endif
" Location of the ag utility
if !exists("g:ag_prg")
" --vimgrep (consistent output we can parse) is available from version 0.25.0+
if split(system("ag --version"), "[ \n\r\t]")[2] =~ '\d\+.[2-9][5-9]\(.\d\+\)\?'
if split(system("ag --version"), "[ \n\r\t]")[2] =~ '\d\+.\(\(2[5-9]\)\|\([3-9][0-9]\)\)\(.\d\+\)\?'
let g:ag_prg="ag --vimgrep"
else
" --noheading seems odd here, but see https://github.com/ggreer/the_silver_searcher/issues/361
Expand Down

0 comments on commit 97f0524

Please sign in to comment.