mirror of
https://github.com/gryf/tagbar.git
synced 2025-12-18 12:00:23 +01:00
Don't do anything on OpenWindow() when in Tagbar window
This commit is contained in:
@@ -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__'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user