mirror of
https://github.com/gryf/tagbar.git
synced 2026-10-08 14:52:31 +02:00
Use quitall in QuitIfOnlyWindow()
This commit is contained in:
1 parent
d48c6f83f5
commit
2c2b3fb99e
1 file changed
+4
-3
+4
-3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user