From ea295ac397cdcb033697b4c3dd841762cab8955d Mon Sep 17 00:00:00 2001 From: nicm Date: Fri, 23 Mar 2018 07:44:44 +0000 Subject: [PATCH] Fix size calculation when spreading out panes. --- layout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;