mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-12 21:33:53 -05:00
Support lazy initialization in statusline indicator
Resolves: https://github.com/tpope/vim-fugitive/issues/1834
This commit is contained in:
@@ -259,7 +259,7 @@ function! FugitivePath(...) abort
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! FugitiveStatusline(...) abort
|
function! FugitiveStatusline(...) abort
|
||||||
if empty(get(b:, 'git_dir', ''))
|
if empty(FugitiveGitDir())
|
||||||
return ''
|
return ''
|
||||||
endif
|
endif
|
||||||
return fugitive#Statusline()
|
return fugitive#Statusline()
|
||||||
|
|||||||
Reference in New Issue
Block a user