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
This commit is contained in:
Tim Pope
2019-01-09 19:57:39 -05:00
parent 9211b11cd2
commit ddc5e1a21a

View File

@@ -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