Clear old TagbarCleanupAutoCmds before redefining (#791)

This commit is contained in:
Michael van der Kamp 2021-09-27 22:08:51 -06:00 committed by GitHub
parent bb8ca482a5
commit b6669c7c9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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('<afile>'), expand('<abuf>'))