From 1c1014a0464cfb4985b6f913381a2a7a2f7b87bd Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Thu, 30 Jan 2020 13:00:45 -0500 Subject: [PATCH] Continue running commands on Vim exit Closes https://github.com/tpope/vim-fugitive/issues/1447 --- autoload/fugitive.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 2823ec1..2d7c21c 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -2323,7 +2323,9 @@ augroup fugitive_job autocmd BufDelete * call s:RunBufDelete(expand('')) autocmd VimLeave * \ for s:jobbuf in keys(s:edit_jobs) | - \ call writefile([], remove(s:edit_jobs, s:jobbuf)[0].temp . '.exit') | + \ call writefile([], s:edit_jobs[s:jobbuf][0].temp . '.exit') | + \ redraw! | + \ call call('s:RunWait', remove(s:edit_jobs, s:jobbuf)) | \ endfor augroup END