mirror of
https://github.com/gryf/tagbar.git
synced 2026-10-06 21:50:36 +02:00
Add comment why BufReadPost is needed
This commit is contained in:
1 parent
e5408f740f
commit
b60d08c468
1 file changed
+2
@@ -971,6 +971,8 @@ function! s:CreateAutocommands() abort
|
||||
|
||||
autocmd BufWritePost * call
|
||||
\ s:AutoUpdate(fnamemodify(expand('<afile>'), ':p'), 1)
|
||||
" BufReadPost is needed for reloading the current buffer if the file
|
||||
" was changed by an external command; see commit 17d199f
|
||||
autocmd BufReadPost,BufEnter,CursorHold,FileType * call
|
||||
\ s:AutoUpdate(fnamemodify(expand('<afile>'), ':p'), 0)
|
||||
autocmd BufDelete,BufUnload,BufWipeout * call
|
||||
|
||||
Reference in new issue
Block a user