From 0bb64995486e8276085f003f73cd5b734f0ebd4f Mon Sep 17 00:00:00 2001 From: Jan Larres Date: Mon, 10 Oct 2016 21:51:14 +1300 Subject: [PATCH] Rename QuitIfOnlyWindow since it's no longer accurate --- autoload/tagbar.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/autoload/tagbar.vim b/autoload/tagbar.vim index 39c2bd4..1411591 100644 --- a/autoload/tagbar.vim +++ b/autoload/tagbar.vim @@ -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