From d5a6419fcf406060b7ad6d4bbb92d132fa792239 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sun, 17 Oct 2021 11:21:28 -0400 Subject: [PATCH] Guard against parallel status reload Resolves: https://github.com/tpope/vim-fugitive/issues/1863 --- autoload/fugitive.vim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index a0403d1..49d046e 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -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