=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/layout.c,v retrieving revision 1.31 retrieving revision 1.32 diff -c -r1.31 -r1.32 *** src/usr.bin/tmux/layout.c 2016/10/16 22:06:40 1.31 --- src/usr.bin/tmux/layout.c 2017/03/11 15:16:35 1.32 *************** *** 1,4 **** ! /* $OpenBSD: layout.c,v 1.31 2016/10/16 22:06:40 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: layout.c,v 1.32 2017/03/11 15:16:35 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott *************** *** 904,913 **** /* Create the new cell. */ lcnew = layout_create_cell(lc); if (lc->type == LAYOUT_LEFTRIGHT) ! layout_set_size(lcnew, new_size, sy, 0, 0); else if (lc->type == LAYOUT_TOPBOTTOM) ! layout_set_size(lcnew, sx, new_size, 0, 0); if (insert_before) TAILQ_INSERT_HEAD(&lc->cells, lcnew, entry); else --- 904,914 ---- /* Create the new cell. */ lcnew = layout_create_cell(lc); + size = saved_size - 1 - new_size; if (lc->type == LAYOUT_LEFTRIGHT) ! layout_set_size(lcnew, size, sy, 0, 0); else if (lc->type == LAYOUT_TOPBOTTOM) ! layout_set_size(lcnew, sx, size, 0, 0); if (insert_before) TAILQ_INSERT_HEAD(&lc->cells, lcnew, entry); else