From a6b823b8d0a8959e81876fd4857ba822495c028a Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Tue, 2 Nov 2021 14:07:58 -0400 Subject: [PATCH] Fix race condition on nvim 0.4 I could have sworn this wasn't necessary on 0.4, which is why I added the extra clause, but I can consistently reproduce E716 now. Resolves: https://github.com/tpope/vim-fugitive/issues/1881 --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 5366c48..be750d4 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -263,7 +263,7 @@ function! fugitive#Wait(job_or_jobs, ...) abort if exists('*jobwait') call map(copy(jobs), 'chanclose(v:val, "stdin")') call jobwait(jobs, timeout_ms) - if len(jobs) && has('nvim-0.5') + if len(jobs) sleep 1m endif else