commit a8139d37b242c5bc5ceeddc4fcd7dddf2b2c2650 (tree)
parent f529acef74b4266d94f22414c60b4a8930c1e0f3
Author: Tim Pope <code@tpope.net>
Date: Tue, 10 May 2022 22:57:51 -0400
Properly normalize Git dir in 'keywordprg'
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim
@@ -6677,7 +6677,7 @@ endfunction
" Section: :Git blame
function! s:Keywordprg() abort
- let args = ' --git-dir='.escape(s:Dir(),"\\\"' ")
+ let args = ' --git-dir=' . escape(FugitiveGitPath(s:GitDir()), "\\\"' ")
if has('gui_running') && !has('win32')
return s:GitShellCmd() . ' --no-pager' . args . ' log -1'
else
@@ -7181,7 +7181,7 @@ endfunction
function! fugitive#BlameFileType() abort
setlocal nomodeline
setlocal foldmethod=manual
- if len(s:Dir())
+ if len(s:GitDir())
let &l:keywordprg = s:Keywordprg()
endif
let b:undo_ftplugin = 'setl keywordprg= foldmethod<'