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

Update on save for smaller files, closes #40

This commit is contained in:
Jan Larres
2011-11-17 22:17:59 +13:00
parent 7cc9789d63
commit c07e878249
3 changed files with 24 additions and 0 deletions

View File

@@ -887,6 +887,10 @@ function! s:CreateAutocommands()
autocmd BufUnload __Tagbar__ call s:CleanUp()
autocmd CursorHold __Tagbar__ call s:ShowPrototype()
autocmd BufWritePost *
\ if line('$') < g:tagbar_updateonsave_maxlines |
\ call s:AutoUpdate(fnamemodify(expand('<afile>'), ':p')) |
\ endif
autocmd BufEnter,CursorHold * call
\ s:AutoUpdate(fnamemodify(expand('<afile>'), ':p'))
autocmd BufDelete * call