Continue running commands on Vim exit

Closes https://github.com/tpope/vim-fugitive/issues/1447
This commit is contained in:
Tim Pope
2020-01-30 13:00:45 -05:00
parent 268a9c1b8f
commit 1c1014a046

View File

@@ -2323,7 +2323,9 @@ augroup fugitive_job
autocmd BufDelete * call s:RunBufDelete(expand('<abuf>')) autocmd BufDelete * call s:RunBufDelete(expand('<abuf>'))
autocmd VimLeave * autocmd VimLeave *
\ for s:jobbuf in keys(s:edit_jobs) | \ 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 \ endfor
augroup END augroup END