Skip to content

Support Tagbar plugin without errors. #103

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions autoload/xolox/session.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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__$'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to use "'^file .{-}Tagbar.\d+$' for my vim to match.

" 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
Expand Down Expand Up @@ -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')
Expand Down