mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-12 13:23:52 -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
|
||||
|
||||
function! FugitiveStatusline(...) abort
|
||||
if empty(get(b:, 'git_dir', ''))
|
||||
if empty(FugitiveGitDir())
|
||||
return ''
|
||||
endif
|
||||
return fugitive#Statusline()
|
||||
|
||||
Reference in New Issue
Block a user