summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/layout-custom.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2019-06-15 06:33:48 +0000
committernicm <nicm@openbsd.org>2019-06-15 06:33:48 +0000
commitb22e26c3fad9de2c0950ea094bf3f9e1531e9202 (patch)
tree4bc470fb9259e6226150ca0f6f9baebb0adfcc7c /usr.bin/tmux/layout-custom.c
parentsimplify the runq interface: (diff)
downloadwireguard-openbsd-b22e26c3fad9de2c0950ea094bf3f9e1531e9202.tar.xz
wireguard-openbsd-b22e26c3fad9de2c0950ea094bf3f9e1531e9202.zip
Use the right format modifier when comparing, and remove a couple of
unused variables.
Diffstat (limited to 'usr.bin/tmux/layout-custom.c')
-rw-r--r--usr.bin/tmux/layout-custom.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/tmux/layout-custom.c b/usr.bin/tmux/layout-custom.c
index db4ec953478..4505f050248 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.13 2019/06/12 08:08:33 nicm Exp $ */
+/* $OpenBSD: layout-custom.c,v 1.14 2019/06/15 06:33:48 nicm Exp $ */
/*
* Copyright (c) 2010 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -122,7 +122,7 @@ layout_parse(struct window *w, const char *layout)
{
struct layout_cell *lc, *lcchild;
struct window_pane *wp;
- u_int npanes, ncells, sx, sy;
+ u_int npanes, ncells;
u_short csum;
/* Check validity. */
@@ -153,8 +153,7 @@ layout_parse(struct window *w, const char *layout)
layout_destroy_cell(w, lcchild, &lc);
}
- /* Save the old window size and resize to the layout size. */
- sx = w->sx; sy = w->sy;
+ /* Resize to the layout size. */
window_resize(w, lc->sx, lc->sy);
/* Destroy the old layout and swap to the new. */