From 2dcd5260b6dceef82380699f6907701a55ac3335 Mon Sep 17 00:00:00 2001 From: Jan Larres Date: Sun, 24 Nov 2013 01:21:08 +1300 Subject: [PATCH] Equalize windows after shrinking if necessary, closes #182 --- autoload/tagbar.vim | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/autoload/tagbar.vim b/autoload/tagbar.vim index 8885659..20099be 100644 --- a/autoload/tagbar.vim +++ b/autoload/tagbar.vim @@ -1890,6 +1890,12 @@ 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