commit e69a3ea21aa44fdf268589366f43e8ab71cd4960 (tree)
parent 442d56e23cd75a336b28cf5e46bf0def8c65dff5
Author: Tim Pope <code@tpope.net>
Date: Sat, 17 Aug 2019 08:43:21 -0400
Add nested to reload status autocommands
References https://github.com/tpope/vim-fugitive/pull/889
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim
@@ -2438,8 +2438,8 @@ endfunction
augroup fugitive_status
autocmd!
autocmd BufWritePost * call fugitive#ReloadStatus(-1, 0)
- autocmd ShellCmdPost * call fugitive#ReloadStatus()
- autocmd BufDelete term://* call fugitive#ReloadStatus()
+ autocmd ShellCmdPost * nested call fugitive#ReloadStatus()
+ autocmd BufDelete term://* nested call fugitive#ReloadStatus()
if !has('win32')
autocmd FocusGained * call fugitive#ReloadStatus(-2, 0)
endif