diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2018-03-23 07:44:45 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2018-03-23 07:44:45 +0000 |
commit | 453daa13cc53bfc9edd1b74457ee4b452e628afd (patch) | |
tree | c93d60776720d69599fc733b7dc296557afc1fc7 | |
parent | 23697b19f9b3e60cf15367cfa95a06602651f9b7 (diff) |
Fix size calculation when spreading out panes.
-rw-r--r-- | usr.bin/tmux/layout.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/layout.c b/usr.bin/tmux/layout.c index c6240cbcb1e..1b04215ab63 100644 --- a/usr.bin/tmux/layout.c +++ b/usr.bin/tmux/layout.c @@ -1,4 +1,4 @@ -/* $OpenBSD: layout.c,v 1.34 2018/01/12 10:16:03 nicm Exp $ */ +/* $OpenBSD: layout.c,v 1.35 2018/03/23 07:44:44 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -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; |