diff --git a/autoload/tagbar.vim b/autoload/tagbar.vim index 32ce3e8..8709073 100644 --- a/autoload/tagbar.vim +++ b/autoload/tagbar.vim @@ -961,7 +961,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)