mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-13 22:03:51 -05:00
Properly normalize Git dir in 'keywordprg'
This commit is contained in:
@@ -6677,7 +6677,7 @@ endfunction
|
|||||||
" Section: :Git blame
|
" Section: :Git blame
|
||||||
|
|
||||||
function! s:Keywordprg() abort
|
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')
|
if has('gui_running') && !has('win32')
|
||||||
return s:GitShellCmd() . ' --no-pager' . args . ' log -1'
|
return s:GitShellCmd() . ' --no-pager' . args . ' log -1'
|
||||||
else
|
else
|
||||||
@@ -7181,7 +7181,7 @@ endfunction
|
|||||||
function! fugitive#BlameFileType() abort
|
function! fugitive#BlameFileType() abort
|
||||||
setlocal nomodeline
|
setlocal nomodeline
|
||||||
setlocal foldmethod=manual
|
setlocal foldmethod=manual
|
||||||
if len(s:Dir())
|
if len(s:GitDir())
|
||||||
let &l:keywordprg = s:Keywordprg()
|
let &l:keywordprg = s:Keywordprg()
|
||||||
endif
|
endif
|
||||||
let b:undo_ftplugin = 'setl keywordprg= foldmethod<'
|
let b:undo_ftplugin = 'setl keywordprg= foldmethod<'
|
||||||
|
|||||||
Reference in New Issue
Block a user