From e69a3ea21aa44fdf268589366f43e8ab71cd4960 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sat, 17 Aug 2019 08:43:21 -0400 Subject: [PATCH] Add nested to reload status autocommands References https://github.com/tpope/vim-fugitive/pull/889 --- autoload/fugitive.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 6259dc1..417cbbd 100644 --- 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