mirror of
https://github.com/preservim/tagbar.git
synced 2025-02-12 22:47:15 +08:00
Only equalize windows after shrinking app window, closes #452
This commit is contained in:
parent
8d2c44f6ac
commit
c004652797
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user