1
0
mirror of https://github.com/gryf/tagbar.git synced 2025-12-17 19:40:27 +01:00

Add comment why BufReadPost is needed

This commit is contained in:
Jan Larres
2013-11-05 09:16:58 +13:00
parent e5408f740f
commit b60d08c468

View File

@@ -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