Update on save for smaller files, closes #40

This commit is contained in:
Jan Larres committed 2011-11-17 22:17:59 +13:00
1 parent 7cc9789d63
commit c07e878249
3 files changed
+24

No files matched your search

+4
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