mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-11 12:53:52 -05:00
Reload status after Vim :terminal command
Closes https://github.com/tpope/vim-fugitive/issues/1323
This commit is contained in:
@@ -2410,7 +2410,10 @@ augroup fugitive_status
|
|||||||
autocmd!
|
autocmd!
|
||||||
autocmd BufWritePost * call fugitive#ReloadStatus(-1, 0)
|
autocmd BufWritePost * call fugitive#ReloadStatus(-1, 0)
|
||||||
autocmd ShellCmdPost * nested call fugitive#ReloadStatus()
|
autocmd ShellCmdPost * nested call fugitive#ReloadStatus()
|
||||||
autocmd BufDelete term://* nested call fugitive#ReloadStatus()
|
autocmd BufDelete * nested
|
||||||
|
\ if getbufvar(+expand('<abuf>'), 'buftype') == 'terminal' |
|
||||||
|
\ call fugitive#ReloadStatus() |
|
||||||
|
\ endif
|
||||||
if !has('win32')
|
if !has('win32')
|
||||||
autocmd FocusGained * call fugitive#ReloadStatus(-2, 0)
|
autocmd FocusGained * call fugitive#ReloadStatus(-2, 0)
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user