Skip to content

Commit

Permalink
Prevent extremely long line matches
Browse files Browse the repository at this point in the history
  • Loading branch information
Numkil committed May 16, 2015
2 parents deca733 + 97f0524 commit 50e30ae
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 -o --vimgrep"
else
" --noheading seems odd here, but see https://github.com/ggreer/the_silver_searcher/issues/361
Expand Down

0 comments on commit 50e30ae

Please sign in to comment.