diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2019-06-15 06:33:49 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2019-06-15 06:33:49 +0000 |
commit | 15c7f55e1b12c449b9b3945b2c4c30ad20b5b149 (patch) | |
tree | 43008f4bdf93b37003eb5a0201309a3cf763a48c /usr.bin/tmux/layout-custom.c | |
parent | 500c9df8b79057c2d4ae5c4455b7c7f1ed0064a2 (diff) |
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.c | 7 |
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. */ |