1
0
mirror of https://github.com/gryf/tagbar.git synced 2025-12-18 12:00:23 +01:00

Keep old alternate file when opening tagbar window.

This commit is contained in:
Jan Larres
2011-01-15 19:22:56 +13:00
parent 8b2fd1c849
commit dfce41715b

View File

@@ -122,7 +122,7 @@ function! s:OpenWindow()
endif
let openpos = g:tagbar_left ? 'topleft vertical ' : 'botright vertical '
execute 'silent! ' . openpos . g:tagbar_width . 'split ' . '__Tagbar__'
execute 'silent! keepalt ' . openpos . g:tagbar_width . 'split ' . '__Tagbar__'
setlocal noreadonly " in case the "view" mode is used
setlocal buftype=nofile