mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-12-19 18:31:18 +08:00
Apparently, both job_status() == "dead" and ch_status() == "closed" isn't enough to guarantee all callbacks have run. One last sleep seems to do the trick, but let's also add a sanity check because this can cause confusing, hard to debug behavior.