summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/layout-set.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2019-04-04 10:25:35 +0000
committernicm <nicm@openbsd.org>2019-04-04 10:25:35 +0000
commiteb84caa44f3dae895795099094652de12ce7c922 (patch)
treea5a140bc3d5531f8430f53a99596273e0dd28747 /usr.bin/tmux/layout-set.c
parentSimplify underruns handling: just copy silence produced by upper layer. (diff)
downloadwireguard-openbsd-eb84caa44f3dae895795099094652de12ce7c922.tar.xz
wireguard-openbsd-eb84caa44f3dae895795099094652de12ce7c922.zip
Fix size check for splitw -f and top level pane size for tiled layout,
problems reported by Thomas Sattler.
Diffstat (limited to 'usr.bin/tmux/layout-set.c')
-rw-r--r--usr.bin/tmux/layout-set.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/tmux/layout-set.c b/usr.bin/tmux/layout-set.c
index 44b72925f34..fcf33708eaa 100644
--- a/usr.bin/tmux/layout-set.c
+++ b/usr.bin/tmux/layout-set.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: layout-set.c,v 1.21 2018/10/18 08:38:01 nicm Exp $ */
+/* $OpenBSD: layout-set.c,v 1.22 2019/04/04 10:25:35 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -450,8 +450,7 @@ layout_set_tiled(struct window *w)
/* Free old tree and create a new root. */
layout_free(w);
lc = w->layout_root = layout_create_cell(NULL);
- layout_set_size(lc, (width + 1) * columns - 1,
- (height + 1) * rows - 1, 0, 0);
+ layout_set_size(lc, w->sx, w->sy, 0, 0);
layout_make_node(lc, LAYOUT_TOPBOTTOM);
/* Create a grid of the cells. */