motiejus/dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.jakstys.lt/motiejus/dotfiles.git
Log | Tree | Refs | README | LICENSE

commit d5a6419fcf406060b7ad6d4bbb92d132fa792239 (tree)
parent 88c7f867cfadd74aaabc329940859de42197b1fd
Author: Tim Pope <code@tpope.net>
Date:   Sun, 17 Oct 2021 11:21:28 -0400

Guard against parallel status reload

Resolves: https://github.com/tpope/vim-fugitive/issues/1863

Diffstat:
Mautoload/fugitive.vim | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git 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