From ddc5e1a21a9981fd55933dacbb72857de2090bfe Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Wed, 9 Jan 2019 19:57:39 -0500 Subject: [PATCH] Reload status after :Gpush and :Gfetch So :make does indeed invoke ShellCmdPost. I just forgot about the :noautocmd. Closes https://github.com/tpope/vim-fugitive/issues/1166 --- autoload/fugitive.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 6b63e5e..11bc0b6 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -1886,7 +1886,7 @@ augroup fugitive_status autocmd! if !has('win32') autocmd ShellCmdPost * call fugitive#ReloadStatus() - autocmd QuickFixCmdPost * call fugitive#ReloadStatus() + autocmd QuickFixCmdPost c*ile call fugitive#ReloadStatus() autocmd FocusGained * call fugitive#ReloadStatus() autocmd BufDelete term://* call fugitive#ReloadStatus() endif @@ -3182,7 +3182,7 @@ function! s:Dispatch(bang, args) else silent noautocmd make! redraw! - return 'call fugitive#Cwindow()' + return 'call fugitive#Cwindow()|call fugitive#ReloadStatus()' endif return '' finally