mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-15 23:03: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
|
function! fugitive#BufReadStatus(...) abort
|
||||||
let amatch = s:Slash(expand('%:p'))
|
let amatch = s:Slash(expand('%:p'))
|
||||||
let b:fugitive_type = 'index'
|
unlet! b:fugitive_reltime b:fugitive_type
|
||||||
unlet! b:fugitive_reltime
|
|
||||||
try
|
try
|
||||||
silent doautocmd BufReadPre
|
silent doautocmd BufReadPre
|
||||||
let config = fugitive#Config()
|
let config = fugitive#Config()
|
||||||
@@ -2878,6 +2877,8 @@ function! fugitive#BufReadStatus(...) abort
|
|||||||
return s:DoAutocmd('User FugitiveIndex')
|
return s:DoAutocmd('User FugitiveIndex')
|
||||||
catch /^fugitive:/
|
catch /^fugitive:/
|
||||||
return 'echoerr ' . string(v:exception)
|
return 'echoerr ' . string(v:exception)
|
||||||
|
finally
|
||||||
|
let b:fugitive_type = 'index'
|
||||||
endtry
|
endtry
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user