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

flags argument added to functions responsible for window toggling

This commit is contained in:
vavaka
2016-10-11 13:41:01 +06:00
parent d81333e055
commit 11cdebab2a

View File

@@ -1775,7 +1775,7 @@ endfunction
" Window management {{{1
" s:ToggleWindow() {{{2
function! s:ToggleWindow() abort
function! s:ToggleWindow(flags) abort
call s:debug('ToggleWindow called')
let tagbarwinnr = bufwinnr(s:TagbarBufName())
@@ -1784,7 +1784,7 @@ function! s:ToggleWindow() abort
return
endif
call s:OpenWindow('')
call s:OpenWindow(a:flags)
call s:debug('ToggleWindow finished')
endfunction
@@ -4242,8 +4242,9 @@ endfunction
" Autoload functions {{{1
" Wrappers {{{2
function! tagbar#ToggleWindow() abort
call s:ToggleWindow()
function! tagbar#ToggleWindow(...) abort
let flags = a:0 > 0 ? a:1 : ''
call s:ToggleWindow(flags)
endfunction
function! tagbar#OpenWindow(...) abort