mirror of
https://github.com/gryf/tagbar.git
synced 2025-12-17 19:40:27 +01:00
Run auto-updating on BufReadPost event
If 'autoread' is set and a buffer gets updated, tagbar need to be triggerd to update itself too.
This commit is contained in:
@@ -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('<afile>'), ':p'), 1)
|
||||
autocmd BufEnter,CursorHold,FileType * call
|
||||
\ s:AutoUpdate(fnamemodify(expand('<afile>'), ':p'), 0)
|
||||
|
||||
Reference in New Issue
Block a user