From 6ac76d95cdd7c6978bfadada8db37fc9e32b5dbb Mon Sep 17 00:00:00 2001 From: Will Stamper Date: Wed, 29 Apr 2015 16:43:11 -0700 Subject: [PATCH] Fix for versions after 0.29 --- autoload/ag.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/ag.vim b/autoload/ag.vim index 6a96e3e1..d39f0e29 100644 --- a/autoload/ag.vim +++ b/autoload/ag.vim @@ -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