1
0
mirror of https://github.com/gryf/tagbar.git synced 2025-12-18 03:50:26 +01:00

Update tagbar when filetype changes

This commit is contained in:
Jan Larres
2011-11-24 01:27:54 +13:00
parent e9aa349d10
commit 20ff7303a6

View File

@@ -891,7 +891,7 @@ function! s:CreateAutocommands()
\ if line('$') < g:tagbar_updateonsave_maxlines |
\ call s:AutoUpdate(fnamemodify(expand('<afile>'), ':p')) |
\ endif
autocmd BufEnter,CursorHold * call
autocmd BufEnter,CursorHold,FileType * call
\ s:AutoUpdate(fnamemodify(expand('<afile>'), ':p'))
autocmd BufDelete * call
\ s:CleanupFileinfo(fnamemodify(expand('<afile>'), ':p'))