1
0
mirror of https://github.com/gryf/tagbar.git synced 2025-12-18 03:50:26 +01:00

Don't do anything on OpenWindow() when in Tagbar window

This commit is contained in:
Jan Larres
2011-02-19 17:39:35 +13:00
parent d0d557bf5f
commit 342aece556

View File

@@ -831,6 +831,11 @@ function! s:OpenWindow(autoclose)
return
endif
" If we're in the tagbar window don't do anything
if winnr() == tagbarwinnr
return
endif
let openpos = g:tagbar_left ? 'topleft vertical ' : 'botright vertical '
exe 'silent! keepalt ' . openpos . g:tagbar_width . 'split ' . '__Tagbar__'