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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user