Fix :Glog on Vim without quickfix "module" support

Closes https://github.com/tpope/vim-fugitive/issues/1279
This commit is contained in:
Tim Pope 2019-07-09 12:01:31 -04:00
parent b48f93b550
commit 9556e59765

View File

@ -3435,7 +3435,7 @@ function! s:Log(type, bang, line1, line2, args) abort
if has('patch-8.0.1782')
let module = '%o'
else
let module = '%[^[:space:]]%#'
let module = "%[%^\t]%#"
endif
let &grepformat = '%Cdiff %.%#,%C--- %.%#,%C+++ %.%#,%Z@@ -%\d%\+\,%\d%\+ +%l\,%\d%\+ @@,%-G-%.%#,%-G+%.%#,%-G %.%#,%-G,%A%f' . "\t\t" . module . "\t\t%m"
silent! exe (a:type ==# 'l' ? 'lgrep' : 'grep') . '!' . escape(s:shellesc(args + paths), '|')