summaryrefslogtreecommitdiffstats
path: root/layout.c
diff options
context:
space:
mode:
authornicm <nicm>2018-03-23 07:44:44 +0000
committernicm <nicm>2018-03-23 07:44:44 +0000
commit26792b90357213b98a990b97fd6dc4333a00adcb (patch)
tree0c889b12ab3318f5743efaf25fe1c7c9a1ea96d7 /layout.c
parent0b3911631bf48272d0517248795d4f0734c38123 (diff)
Fix size calculation when spreading out panes.
Diffstat (limited to 'layout.c')
-rw-r--r--layout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/layout.c b/layout.c
index 4ccd6d79..bab95868 100644
--- a/layout.c
+++ b/layout.c
@@ -1023,7 +1023,7 @@ layout_spread_cell(struct window *w, struct layout_cell *parent)
changed = 0;
TAILQ_FOREACH (lc, &parent->cells, entry) {
if (TAILQ_NEXT(lc, entry) == NULL)
- each = size - (each * (number - 1));
+ each = size - ((each + 1) * (number - 1));
change = 0;
if (parent->type == LAYOUT_LEFTRIGHT) {
change = each - (int)lc->sx;