From 342aece55636e579fdc20b7a66ef8386274aad87 Mon Sep 17 00:00:00 2001 From: Jan Larres Date: Sat, 19 Feb 2011 17:39:35 +1300 Subject: [PATCH] Don't do anything on OpenWindow() when in Tagbar window --- plugin/tagbar.vim | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugin/tagbar.vim b/plugin/tagbar.vim index 1397ec7..2900c4a 100644 --- a/plugin/tagbar.vim +++ b/plugin/tagbar.vim @@ -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__'