summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/layout-set.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-set.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-set.c')
-rw-r--r--usr.bin/tmux/layout-set.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/tmux/layout-set.c b/usr.bin/tmux/layout-set.c
index 5382b5f75ca..b66f530b481 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.26 2019/05/14 07:37:50 nicm Exp $ */
+/* $OpenBSD: layout-set.c,v 1.27 2019/07/15 18:25:07 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -158,7 +158,7 @@ layout_set_even(struct window *w, enum layout_type type)
layout_spread_cell(w, lc);
/* Fix cell offsets. */
- layout_fix_offsets(lc);
+ layout_fix_offsets(w);
layout_fix_panes(w);
layout_print_cell(w->layout_root, __func__, 1);
@@ -257,7 +257,7 @@ layout_set_main_h(struct window *w)
}
/* Fix cell offsets. */
- layout_fix_offsets(lc);
+ layout_fix_offsets(w);
layout_fix_panes(w);
layout_print_cell(w->layout_root, __func__, 1);
@@ -344,7 +344,7 @@ layout_set_main_v(struct window *w)
}
/* Fix cell offsets. */
- layout_fix_offsets(lc);
+ layout_fix_offsets(w);
layout_fix_panes(w);
layout_print_cell(w->layout_root, __func__, 1);
@@ -453,7 +453,7 @@ layout_set_tiled(struct window *w)
}
/* Fix cell offsets. */
- layout_fix_offsets(lc);
+ layout_fix_offsets(w);
layout_fix_panes(w);
layout_print_cell(w->layout_root, __func__, 1);