1
0
mirror of https://github.com/gryf/tagbar.git synced 2025-12-17 19:40:27 +01:00

remove redundant code

This commit is contained in:
Taybin Rutkin
2011-03-03 16:54:19 -05:00
committed by Jan Larres
parent a532d7c445
commit d86d93dbf1

View File

@@ -833,13 +833,10 @@ function! s:OpenWindow(autoclose)
" If the tagbar window is already open jump to it
let tagbarwinnr = bufwinnr('__Tagbar__')
if tagbarwinnr != -1 && winnr() != tagbarwinnr
execute tagbarwinnr . 'wincmd w'
return
endif
" If we're in the tagbar window don't do anything
if winnr() == tagbarwinnr
if tagbarwinnr != -1
if winnr() != tagbarwinnr
execute tagbarwinnr . 'wincmd w'
endif
return
endif