Skip to content

Commit

Permalink
Equalize windows after shrinking if necessary, closes #182
Browse files Browse the repository at this point in the history
  • Loading branch information
majutsushi committed Nov 23, 2013
1 parent 3f28e3b commit 2dcd526
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions autoload/tagbar.vim
Expand Up @@ -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
Expand Down

0 comments on commit 2dcd526

Please sign in to comment.