1
0
mirror of https://github.com/gryf/tagbar.git synced 2025-12-17 11:30:28 +01:00

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

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>'))