mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-15 06:43:51 -05:00
Force current buffer number for FugitiveStatusline()
This is normally the default, but might be different during an event like FugitiveChanged.
This commit is contained in:
@@ -259,7 +259,7 @@ function! FugitivePath(...) abort
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! FugitiveStatusline(...) abort
|
function! FugitiveStatusline(...) abort
|
||||||
if empty(FugitiveGitDir())
|
if empty(FugitiveGitDir(bufnr('')))
|
||||||
return ''
|
return ''
|
||||||
endif
|
endif
|
||||||
return fugitive#Statusline()
|
return fugitive#Statusline()
|
||||||
|
|||||||
Reference in New Issue
Block a user