1
0
mirror of https://github.com/gryf/tagbar.git synced 2025-12-18 12:00:23 +01:00

Disable autocommands when deleting Tagbar buffer in HandleOnlyWindow

This prevents infinite recursion with nested autocommands when using a
BufEnter autocommand that calls autoopen().
This commit is contained in:
Jan Larres
2016-11-07 12:45:17 +13:00
parent e212be6a12
commit 01f57ac564

View File

@@ -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