diff options
author | 2018-03-23 07:44:44 +0000 | |
---|---|---|
committer | 2018-03-23 07:44:44 +0000 | |
commit | b94bacf5401954ec47430fbcc9bd5ed2189d4012 (patch) | |
tree | d512d3ea9b7f28219af704686711901131f25bde /usr.bin/tmux/layout.c | |
parent | ssl.h HISTORY up to 1.0.1; researched from OpenSSL git (diff) | |
download | wireguard-openbsd-b94bacf5401954ec47430fbcc9bd5ed2189d4012.tar.xz wireguard-openbsd-b94bacf5401954ec47430fbcc9bd5ed2189d4012.zip |
Fix size calculation when spreading out panes.
Diffstat (limited to 'usr.bin/tmux/layout.c')
-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; |