1
0
mirror of https://github.com/gryf/tagbar.git synced 2025-12-17 19:40:27 +01:00

Rename QuitIfOnlyWindow since it's no longer accurate

This commit is contained in:
Jan Larres
2016-10-10 21:51:14 +13:00
parent e4cfe8add5
commit 0bb6499548

View File

@@ -1041,7 +1041,7 @@ function! s:CreateAutocommands() abort
endif
autocmd QuitPre * let s:vim_quitting = 1
autocmd WinEnter * nested call s:QuitIfOnlyWindow()
autocmd WinEnter * nested call s:HandleOnlyWindow()
autocmd WinEnter * if bufwinnr(s:TagbarBufName()) == -1 |
\ call s:ShrinkIfExpanded() |
\ endif
@@ -4031,8 +4031,8 @@ function! s:SetStatusLine()
endif
endfunction
" s:QuitIfOnlyWindow() {{{2
function! s:QuitIfOnlyWindow() abort
" s:HandleOnlyWindow() {{{2
function! s:HandleOnlyWindow() abort
let tagbarwinnr = bufwinnr(s:TagbarBufName())
if tagbarwinnr == -1 || exists('s:reopen_window')
return