mirror of
https://github.com/preservim/tagbar.git
synced 2025-02-13 02:27:14 +08:00
Don't do anything on OpenWindow() when in Tagbar window
This commit is contained in:
parent
d0d557bf5f
commit
342aece556
|
@ -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__'
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user