Skip to content

Commit

Permalink
Clear old TagbarCleanupAutoCmds before redefining (preservim#791)
Browse files Browse the repository at this point in the history
  • Loading branch information
mvanderkamp committed Sep 28, 2021
1 parent bb8ca48 commit b6669c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions autoload/tagbar.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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>'))
Expand Down

0 comments on commit b6669c7

Please sign in to comment.