Skip to content
Draft
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
9 changes: 9 additions & 0 deletions autoload/tagbar.vim
Original file line number Diff line number Diff line change
Expand Up @@ -888,10 +888,19 @@ function! s:OpenWindow(flags) abort
let openpos = g:tagbar_left ? 'leftabove ' : 'rightbelow '
let width = g:tagbar_vertical
endif

let l:splitright = &splitright
if g:tagbar_window_local == 1
let openpos = ''
let &splitright = g:tagbar_left ? 0 : 1
endif

exe 'silent keepalt ' . openpos . mode . width . 'split ' . s:TagbarBufName()
exe 'silent ' . mode . 'resize ' . width
unlet s:window_opening

let &splitright = l:splitright

call s:InitWindow(autoclose)

" If the current file exists, but is empty, it means that it had a
Expand Down