1
0
mirror of https://github.com/gryf/tagbar.git synced 2025-12-17 11:30:28 +01:00

Add tagbar#StopAutoUpdate

This is useful to stop updating information, after using
`tagbar#currenttag` manually/temporarily only.
This commit is contained in:
Daniel Hahler
2018-01-11 17:13:51 +01:00
parent 387bbadda9
commit b8065cfee4
2 changed files with 19 additions and 2 deletions

View File

@@ -862,8 +862,7 @@ function! s:CloseWindow() abort
call s:ShrinkIfExpanded()
if s:autocommands_done && !s:statusline_in_use
autocmd! TagbarAutoCmds
let s:autocommands_done = 0
call tagbar#StopAutoUpdate()
endif
call tagbar#debug#log('CloseWindow finished')
@@ -3243,6 +3242,11 @@ function! tagbar#RestoreSession() abort
call s:RestoreSession()
endfunction
function! tagbar#StopAutoUpdate() abort
autocmd! TagbarAutoCmds
let s:autocommands_done = 0
endfunction
" }}}2
" tagbar#toggle_pause() {{{2