Permalink
Browse files

Merge pull request #118 from techlivezheng/feature/autoupdate-on-bufr…

…eadpost

Run auto-updating on BufReadPost event
  • Loading branch information...
2 parents 9bbd009 + 17d199f commit 9ec7d1db4cf9af291e932f0e0e75d76843ef7769 @majutsushi committed Feb 6, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 autoload/tagbar.vim
View
@@ -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('<afile>'), ':p'), 1)
autocmd BufEnter,CursorHold,FileType * call
\ s:AutoUpdate(fnamemodify(expand('<afile>'), ':p'), 0)

0 comments on commit 9ec7d1d

Please sign in to comment.