mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-09 12:03:47 -05:00
Compare commits
1 Commits
v3.7
...
double-sta
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2685422e17 |
@@ -2556,6 +2556,10 @@ function! fugitive#BufReadStatus(...) abort
|
|||||||
let b:fugitive_type = 'index'
|
let b:fugitive_type = 'index'
|
||||||
unlet! b:fugitive_reltime
|
unlet! b:fugitive_reltime
|
||||||
try
|
try
|
||||||
|
if exists('b:fugitive_reloading')
|
||||||
|
throw 'double status reload???'
|
||||||
|
endif
|
||||||
|
let b:fugitive_reloading = 1
|
||||||
silent doautocmd BufReadPre
|
silent doautocmd BufReadPre
|
||||||
let config = fugitive#Config()
|
let config = fugitive#Config()
|
||||||
|
|
||||||
@@ -2878,6 +2882,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
|
||||||
|
unlet! b:fugitive_reloading
|
||||||
endtry
|
endtry
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user