From d463f4cf76341e7b6ad534766a942506238737ee Mon Sep 17 00:00:00 2001 From: "Adam R. Smith" Date: Fri, 26 Sep 2014 14:48:47 -0400 Subject: [PATCH] Support Tagbar plugin without errors. --- autoload/xolox/session.vim | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/autoload/xolox/session.vim b/autoload/xolox/session.vim index 6688d61..28284a8 100644 --- a/autoload/xolox/session.vim +++ b/autoload/xolox/session.vim @@ -246,6 +246,9 @@ function! s:state_filter(line) " {{{3 elseif a:line =~ '^file .\{-}__Tag_List__$' " Same trick (about the E95) for TagList. return '" ' . a:line + elseif a:line =~ '^file .\{-}__Tagbar__$' + " Same trick (about the E95) for Tagbar. + return '" ' . a:line elseif a:line =~ "^\\s*silent exe 'bwipe ' \\. s:wipebuf$" || a:line =~ '^unlet! s:wipebuf$' " Disable Vim's special handling of the initial, empty buffer because it " breaks restoring of special windows with content generated by a Vim @@ -315,6 +318,9 @@ function! s:check_special_window(session) elseif bufname == '__Tag_List__' let command = 'Tlist' let argument = '' + elseif bufname == '__Tagbar__' + let command = 'TagbarOpen' + let argument = '' elseif exists('g:proj_running') && g:proj_running == bufnr('%') let command = 'Project' let argument = expand('%:p')