diff --git a/plugin/tagbar.vim b/plugin/tagbar.vim index 0a4172f..45059b8 100644 --- a/plugin/tagbar.vim +++ b/plugin/tagbar.vim @@ -163,7 +163,7 @@ function! s:OpenWindow() " If the tagbar window is already open jump to it let tagbarwinnr = bufwinnr('__Tagbar__') if tagbarwinnr != -1 && winnr() != tagbarwinnr -" execute tagbarwinnr . 'wincmd w' + execute tagbarwinnr . 'wincmd w' return endif @@ -196,7 +196,13 @@ function! s:OpenWindow() " Variable for saving the current file for functions that are called from " the tagbar window let s:current_file = '' + + " Script-local variable needed since compare functions can't + " take extra arguments + let s:compare_typeinfo = {} + let s:is_maximized = 0 + let s:short_help = 1 syntax match Comment '^" .*' " Comments syntax match Identifier '^[^: ]\+$' " Non-scoped kinds @@ -220,6 +226,7 @@ function! s:OpenWindow() nnoremap