Skip to content

Commit

Permalink
Merge pull request #118 from techlivezheng/feature/autoupdate-on-bufr…
Browse files Browse the repository at this point in the history
…eadpost

Run auto-updating on BufReadPost event
  • Loading branch information
majutsushi committed Feb 6, 2013
2 parents 9bbd009 + 17d199f commit 9ec7d1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/tagbar.vim
Expand Up @@ -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)
Expand Down

0 comments on commit 9ec7d1d

Please sign in to comment.