commit 9556e59765000e984e958384bb2b9ec9ed9aa57a (tree)
parent b48f93b5500a70e6f09b39d42b8ed2ef3c52b985
Author: Tim Pope <code@tpope.net>
Date: Tue, 9 Jul 2019 12:01:31 -0400
Fix :Glog on Vim without quickfix "module" support
Closes https://github.com/tpope/vim-fugitive/issues/1279
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim
@@ -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), '|')