From 01f57ac5643b0365021ab891f78519d849867a5e Mon Sep 17 00:00:00 2001 From: Jan Larres Date: Mon, 7 Nov 2016 12:45:17 +1300 Subject: [PATCH] Disable autocommands when deleting Tagbar buffer in HandleOnlyWindow This prevents infinite recursion with nested autocommands when using a BufEnter autocommand that calls autoopen(). --- autoload/tagbar.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/tagbar.vim b/autoload/tagbar.vim index 78b4a1a..faaa16c 100644 --- a/autoload/tagbar.vim +++ b/autoload/tagbar.vim @@ -4144,7 +4144,7 @@ function! s:HandleOnlyWindow() abort " Before quitting Vim, delete the tagbar buffer so that the '0 mark is " correctly set to the previous buffer. if tabpagenr('$') == 1 - keepalt bdelete + noautocmd keepalt bdelete endif try