mirror of
https://github.com/tmux/tmux.git
synced 2024-12-25 19:08:58 +00:00
Fix size calculation when spreading out panes.
This commit is contained in:
parent
0b3911631b
commit
26792b9035
2
layout.c
2
layout.c
@ -1023,7 +1023,7 @@ layout_spread_cell(struct window *w, struct layout_cell *parent)
|
|||||||
changed = 0;
|
changed = 0;
|
||||||
TAILQ_FOREACH (lc, &parent->cells, entry) {
|
TAILQ_FOREACH (lc, &parent->cells, entry) {
|
||||||
if (TAILQ_NEXT(lc, entry) == NULL)
|
if (TAILQ_NEXT(lc, entry) == NULL)
|
||||||
each = size - (each * (number - 1));
|
each = size - ((each + 1) * (number - 1));
|
||||||
change = 0;
|
change = 0;
|
||||||
if (parent->type == LAYOUT_LEFTRIGHT) {
|
if (parent->type == LAYOUT_LEFTRIGHT) {
|
||||||
change = each - (int)lc->sx;
|
change = each - (int)lc->sx;
|
||||||
|
Loading…
Reference in New Issue
Block a user