=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/layout-custom.c,v retrieving revision 1.13 retrieving revision 1.14 diff -c -r1.13 -r1.14 *** src/usr.bin/tmux/layout-custom.c 2019/06/12 08:08:33 1.13 --- src/usr.bin/tmux/layout-custom.c 2019/06/15 06:33:48 1.14 *************** *** 1,4 **** ! /* $OpenBSD: layout-custom.c,v 1.13 2019/06/12 08:08:33 nicm Exp $ */ /* * Copyright (c) 2010 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: layout-custom.c,v 1.14 2019/06/15 06:33:48 nicm Exp $ */ /* * Copyright (c) 2010 Nicholas Marriott *************** *** 122,128 **** { struct layout_cell *lc, *lcchild; struct window_pane *wp; ! u_int npanes, ncells, sx, sy; u_short csum; /* Check validity. */ --- 122,128 ---- { struct layout_cell *lc, *lcchild; struct window_pane *wp; ! u_int npanes, ncells; u_short csum; /* Check validity. */ *************** *** 153,160 **** layout_destroy_cell(w, lcchild, &lc); } ! /* Save the old window size and resize to the layout size. */ ! sx = w->sx; sy = w->sy; window_resize(w, lc->sx, lc->sy); /* Destroy the old layout and swap to the new. */ --- 153,159 ---- layout_destroy_cell(w, lcchild, &lc); } ! /* Resize to the layout size. */ window_resize(w, lc->sx, lc->sy); /* Destroy the old layout and swap to the new. */