From cfa485ede71de18d0168f653eb177e7e5e2f8e80 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Tue, 15 Dec 2015 19:01:40 -0500 Subject: [PATCH] Better support for binary file grep results --- plugin/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index f95af69..76315c2 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -1260,7 +1260,7 @@ function! s:Grep(cmd,bang,arg) abort try execute cd.'`=s:repo().tree()`' let &grepprg = s:repo().git_command('--no-pager', 'grep', '-n', '--no-color') - let &grepformat = '%f:%l:%m,%f' + let &grepformat = '%f:%l:%m,%m %f match%ts,%f' exe a:cmd.'! '.escape(matchstr(a:arg,'\v\C.{-}%($|[''" ]\@=\|)@='),'|') let list = a:cmd =~# '^l' ? getloclist(0) : getqflist() for entry in list