mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-13 22:03:51 -05:00
This makes the pager behave a better, allowing the -- More -- prompt to actually display and not dropping output if the process exits while there's a backlog. An additional benefit is if Git for some reason produces additional output while GIT_EDITOR is running, that output will be buffered rather than interrupting the user. The extracted s:RunTick() helper changes the Vim behavior to check the process status after waiting as well as before. This brings it in line with how Neovim's jobwait() appears to work. The zero argument :echo after the final s:RunEcho() clears up some weird draw issues with `:Git command|someothercommand`. References https://github.com/tpope/vim-fugitive/issues/1717