mirror of
https://github.com/gryf/tagbar.git
synced 2025-12-18 12:00:23 +01:00
Don't jump do the tagbar window on TagbarOpen if already open
This commit is contained in:
@@ -1374,12 +1374,9 @@ endfunction
|
||||
|
||||
" s:OpenWindow() {{{2
|
||||
function! s:OpenWindow(autoclose)
|
||||
" If the tagbar window is already open jump to it
|
||||
" If the tagbar window is already open don't do anything
|
||||
let tagbarwinnr = bufwinnr('__Tagbar__')
|
||||
if tagbarwinnr != -1
|
||||
if winnr() != tagbarwinnr
|
||||
execute tagbarwinnr . 'wincmd w'
|
||||
endif
|
||||
return
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user