remove redundant code

This commit is contained in:
Taybin Rutkin
2011-03-05 19:25:47 +13:00
committed by Jan Larres
parent a532d7c445
commit d86d93dbf1
+4 -7
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