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!
|
autocmd!
|
||||||
if !has('win32')
|
if !has('win32')
|
||||||
autocmd ShellCmdPost * call fugitive#ReloadStatus()
|
autocmd ShellCmdPost * call fugitive#ReloadStatus()
|
||||||
autocmd QuickFixCmdPost * call fugitive#ReloadStatus()
|
autocmd QuickFixCmdPost c*ile call fugitive#ReloadStatus()
|
||||||
autocmd FocusGained * call fugitive#ReloadStatus()
|
autocmd FocusGained * call fugitive#ReloadStatus()
|
||||||
autocmd BufDelete term://* call fugitive#ReloadStatus()
|
autocmd BufDelete term://* call fugitive#ReloadStatus()
|
||||||
endif
|
endif
|
||||||
@@ -3182,7 +3182,7 @@ function! s:Dispatch(bang, args)
|
|||||||
else
|
else
|
||||||
silent noautocmd make!
|
silent noautocmd make!
|
||||||
redraw!
|
redraw!
|
||||||
return 'call fugitive#Cwindow()'
|
return 'call fugitive#Cwindow()|call fugitive#ReloadStatus()'
|
||||||
endif
|
endif
|
||||||
return ''
|
return ''
|
||||||
finally
|
finally
|
||||||
|
|||||||
Reference in New Issue
Block a user