diff --git a/autoload/tagbar.vim b/autoload/tagbar.vim index 3ee4b921..9748f04d 100644 --- a/autoload/tagbar.vim +++ b/autoload/tagbar.vim @@ -597,6 +597,8 @@ function! s:CreateAutocommands() abort " Separate these autocmds out from the others as we want to always perform " these actions even if the tagbar window closes. augroup TagbarCleanupAutoCmds + autocmd! + if !g:tagbar_no_autocmds autocmd BufDelete,BufWipeout * \ nested call s:HandleBufDelete(expand(''), expand(''))