mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-12 21:33:53 -05:00
Neovim seemlingly forces a redraw if :sleep is called while defocused, but only if at least one FocusGained/FocusLost autocommand is defined. The purpose of this :sleep is to force the exit callback to run when jobwait() erroneously refuses to do the job. Our exit callback removes the job from the dictionary, so we can use the lack of a job key in any dictionary as a signal that we can skip it. Hacks on top of hacks. Resolves: https://github.com/tpope/vim-fugitive/issues/1909 References: https://github.com/tpope/vim-fugitive/issues/1857