Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…eadpost

Run auto-updating on BufReadPost event
  • Loading branch information...
commit 9ec7d1db4cf9af291e932f0e0e75d76843ef7769 2 parents 9bbd009 + 17d199f
Jan Larres authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  autoload/tagbar.vim
2  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)
Please sign in to comment.
Something went wrong with that request. Please try again.