mirror of
https://github.com/gryf/tagbar.git
synced 2025-12-17 11:30:28 +01:00
Merge pull request #470 from blueyed/add-StopAutoUpdate
Add tagbar#StopAutoUpdate
This commit is contained in:
@@ -867,8 +867,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')
|
||||
@@ -3248,6 +3247,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
|
||||
|
||||
Reference in New Issue
Block a user