From ae93dbea2e4c211a1a82600122cdbe39f4612b20 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Fri, 8 Oct 2021 19:03:36 -0400 Subject: [PATCH] Ensure jobstart on_exit runs when waiting Resolves: https://github.com/tpope/vim-fugitive/issues/1857 --- autoload/fugitive.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 558c6c7..8a86362 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -263,6 +263,9 @@ 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') + sleep 1m + endif else let sleep = has('patch-8.2.2366') ? 'sleep! 1m' : 'sleep 1m' for job in jobs