Equalize windows after shrinking if necessary, closes #182

This commit is contained in:
Jan Larres
2013-11-24 01:21:08 +13:00
parent 3f28e3b073
commit 2dcd5260b6

View File

@ -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