Skip to content

Commit 6453884

Browse files
committed
Consider current win height when toggling minimization
The new behaviour is more intuitive when the current layout is not the result of automatic resizing, e.g. after dragging a status bar.
1 parent 5e2bbcc commit 6453884

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugin/acme.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,7 @@ function s:Minimize(w)
808808
if index(col, a:w) == 0
809809
let s:tops = s:tops == 1 ? 2 : 1
810810
else
811-
let s:minimized[a:w] = !s:Minimized(a:w)
811+
let s:minimized[a:w] = winheight(a:w) > 1
812812
endif
813813
call s:Layout(col)
814814
endfunc

0 commit comments

Comments
 (0)