summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/layout-custom.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2019-07-15 18:25:07 +0000
committernicm <nicm@openbsd.org>2019-07-15 18:25:07 +0000
commit42fbd26a50be5ad88d455eb92afd05b75399b917 (patch)
tree7064390f3db54d15b3cbbbe07b6909d743c6128e /usr.bin/tmux/layout-custom.c
parentExplain in which circumstances trailing slashes can be omitted after (diff)
downloadwireguard-openbsd-42fbd26a50be5ad88d455eb92afd05b75399b917.tar.xz
wireguard-openbsd-42fbd26a50be5ad88d455eb92afd05b75399b917.zip
Make layout_fix_offsets take a window like layout_fix_panes.
Diffstat (limited to 'usr.bin/tmux/layout-custom.c')
-rw-r--r--usr.bin/tmux/layout-custom.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/layout-custom.c b/usr.bin/tmux/layout-custom.c
index 4505f050248..4d6bd34c23d 100644
--- a/usr.bin/tmux/layout-custom.c
+++ b/usr.bin/tmux/layout-custom.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: layout-custom.c,v 1.14 2019/06/15 06:33:48 nicm Exp $ */
+/* $OpenBSD: layout-custom.c,v 1.15 2019/07/15 18:25:07 nicm Exp $ */
/*
* Copyright (c) 2010 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -165,7 +165,7 @@ layout_parse(struct window *w, const char *layout)
layout_assign(&wp, lc);
/* Update pane offsets and sizes. */
- layout_fix_offsets(lc);
+ layout_fix_offsets(w);
layout_fix_panes(w);
recalculate_sizes();