mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-14 14:23:51 -05:00
Guard against parallel status reload
Resolves: https://github.com/tpope/vim-fugitive/issues/1863
This commit is contained in:
@@ -2553,8 +2553,7 @@ let s:rebase_abbrevs = {
|
||||
|
||||
function! fugitive#BufReadStatus(...) abort
|
||||
let amatch = s:Slash(expand('%:p'))
|
||||
let b:fugitive_type = 'index'
|
||||
unlet! b:fugitive_reltime
|
||||
unlet! b:fugitive_reltime b:fugitive_type
|
||||
try
|
||||
silent doautocmd BufReadPre
|
||||
let config = fugitive#Config()
|
||||
@@ -2878,6 +2877,8 @@ function! fugitive#BufReadStatus(...) abort
|
||||
return s:DoAutocmd('User FugitiveIndex')
|
||||
catch /^fugitive:/
|
||||
return 'echoerr ' . string(v:exception)
|
||||
finally
|
||||
let b:fugitive_type = 'index'
|
||||
endtry
|
||||
endfunction
|
||||
|
||||
|
||||
Reference in New Issue
Block a user