mirror of
https://github.com/preservim/tagbar.git
synced 2025-02-14 21:42:46 +08:00
Clear old TagbarCleanupAutoCmds before redefining (#791)
This commit is contained in:
parent
bb8ca482a5
commit
b6669c7c9d
|
@ -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>'))
|
||||
|
|
Loading…
Reference in New Issue
Block a user