Skip to content

Commit 3ddfd3e

Browse files
committed
Give top wins a bit less space
A factor of two between the top win and the ones below was a bit too much. We now use fractions when calculating win heights which allows to fine tuning the factor.
1 parent 6453884 commit 3ddfd3e

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
@@ -789,7 +789,7 @@ function s:Layout(col)
789789
endif
790790
let s = 1
791791
else
792-
let s = h / (n + n * (n > s:tops))
792+
let s = float2nr(h / (n * (n > s:tops ? 1.75 : 1)))
793793
endif
794794
call win_move_statusline(win_id2win(w) - 1, winheight(w) - s)
795795
let h -= s

0 commit comments

Comments
 (0)