Add nested to reload status autocommands

References https://github.com/tpope/vim-fugitive/pull/889
This commit is contained in:
Tim Pope 2019-08-17 08:43:21 -04:00
parent 442d56e23c
commit e69a3ea21a

View File

@ -2438,8 +2438,8 @@ endfunction
augroup fugitive_status augroup fugitive_status
autocmd! autocmd!
autocmd BufWritePost * call fugitive#ReloadStatus(-1, 0) autocmd BufWritePost * call fugitive#ReloadStatus(-1, 0)
autocmd ShellCmdPost * call fugitive#ReloadStatus() autocmd ShellCmdPost * nested call fugitive#ReloadStatus()
autocmd BufDelete term://* call fugitive#ReloadStatus() autocmd BufDelete term://* nested call fugitive#ReloadStatus()
if !has('win32') if !has('win32')
autocmd FocusGained * call fugitive#ReloadStatus(-2, 0) autocmd FocusGained * call fugitive#ReloadStatus(-2, 0)
endif endif