From c004652797185121bbf264138d57eb2a0199b6db Mon Sep 17 00:00:00 2001 From: Jan Larres Date: Sun, 3 Dec 2017 16:20:52 +1300 Subject: [PATCH] Only equalize windows after shrinking app window, closes #452 --- autoload/tagbar.vim | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/autoload/tagbar.vim b/autoload/tagbar.vim index ea8febf..fd51e5b 100644 --- a/autoload/tagbar.vim +++ b/autoload/tagbar.vim @@ -861,12 +861,6 @@ function! s:CloseWindow() abort call s:ShrinkIfExpanded() - " The window sizes may have changed due to the shrinking happening after - " the window closing, so equalize them again. - if &equalalways - wincmd = - endif - if s:autocommands_done && !s:statusline_in_use autocmd! TagbarAutoCmds let s:autocommands_done = 0 @@ -901,6 +895,12 @@ function! s:ShrinkIfExpanded() abort \ ' ' . s:window_pos.pre.y endif endif + + " The window sizes may have changed due to the shrinking happening after + " the window closing, so equalize them again. + if &equalalways + wincmd = + endif endfunction " s:ZoomWindow() {{{2