diff --git a/autoload/tagbar.vim b/autoload/tagbar.vim index e9e8e93..84bd4e4 100644 --- a/autoload/tagbar.vim +++ b/autoload/tagbar.vim @@ -960,7 +960,7 @@ function! s:CreateAutocommands() abort autocmd BufEnter __Tagbar__ nested call s:QuitIfOnlyWindow() autocmd CursorHold __Tagbar__ call s:ShowPrototype(1) - autocmd BufWritePost * call + autocmd BufReadPost,BufWritePost * call \ s:AutoUpdate(fnamemodify(expand(''), ':p'), 1) autocmd BufEnter,CursorHold,FileType * call \ s:AutoUpdate(fnamemodify(expand(''), ':p'), 0)