mirror of
https://github.com/tpope/vim-fugitive.git
synced 2026-10-12 16:10:19 +08: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:
1 parent
1a652c0cdf
commit
e2927fb467
1 file changed
+1
-1
+1
-1
@@ -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