diff options
author | nicm <nicm> | 2017-03-11 15:16:35 +0000 |
---|---|---|
committer | nicm <nicm> | 2017-03-11 15:16:35 +0000 |
commit | d455da45eb8292185964041f1967a8b0b28c88af (patch) | |
tree | 7610162fd1b43530d48f98682161fdb1ae19d4f5 /layout.c | |
parent | 0fe3b739a1ef8b06a450a1a84663d01355214519 (diff) | |
download | rtmux-d455da45eb8292185964041f1967a8b0b28c88af.tar.gz rtmux-d455da45eb8292185964041f1967a8b0b28c88af.tar.bz2 rtmux-d455da45eb8292185964041f1967a8b0b28c88af.zip |
Fix calculation of size for full size splits.
Diffstat (limited to 'layout.c')
-rw-r--r-- | layout.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -904,10 +904,11 @@ layout_split_pane(struct window_pane *wp, enum layout_type type, int size, /* Create the new cell. */ lcnew = layout_create_cell(lc); + size = saved_size - 1 - new_size; if (lc->type == LAYOUT_LEFTRIGHT) - layout_set_size(lcnew, new_size, sy, 0, 0); + layout_set_size(lcnew, size, sy, 0, 0); else if (lc->type == LAYOUT_TOPBOTTOM) - layout_set_size(lcnew, sx, new_size, 0, 0); + layout_set_size(lcnew, sx, size, 0, 0); if (insert_before) TAILQ_INSERT_HEAD(&lc->cells, lcnew, entry); else |