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

Use quitall in QuitIfOnlyWindow()

This commit is contained in:
Jan Larres
2012-01-14 19:35:50 +13:00
parent d48c6f83f5
commit 2c2b3fb99e

View File

@@ -2711,13 +2711,14 @@ endfunction
" s:QuitIfOnlyWindow() {{{2
function! s:QuitIfOnlyWindow()
" Before quitting Vim, delete the tagbar buffer so that
" the '0 mark is correctly set to the previous buffer.
" Check if there is more than window
if winbufnr(2) == -1
" Check if there is more than one tab page
if tabpagenr('$') == 1
" Before quitting Vim, delete the tagbar buffer so that
" the '0 mark is correctly set to the previous buffer.
bdelete
quit
quitall
else
close
endif