mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-13 05:43:52 -05:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user