diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2015-09-23 14:27:11 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2015-09-23 14:27:11 +0100 |
commit | 06d4553a15db5b7b018e0d5a97a355ca341b0168 (patch) | |
tree | ed57a8dfd5d5703dc526142db5028089aebb49b4 /layout.c | |
parent | 1caebaa49a0a418b21724c3651e993224bfc12eb (diff) | |
parent | 7e9b87f396e117828c0db9dd53f4b01a82f35640 (diff) | |
download | rtmux-06d4553a15db5b7b018e0d5a97a355ca341b0168.tar.gz rtmux-06d4553a15db5b7b018e0d5a97a355ca341b0168.tar.bz2 rtmux-06d4553a15db5b7b018e0d5a97a355ca341b0168.zip |
Merge branch 'master' of github.com:tmux/tmux
Diffstat (limited to 'layout.c')
-rw-r--r-- | layout.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -686,6 +686,8 @@ layout_split_pane( case LAYOUT_LEFTRIGHT: if (size < 0) size2 = ((sx + 1) / 2) - 1; + else if (insert_before) + size2 = sx - size - 1; else size2 = size; if (size2 < PANE_MINIMUM) @@ -699,6 +701,8 @@ layout_split_pane( case LAYOUT_TOPBOTTOM: if (size < 0) size2 = ((sy + 1) / 2) - 1; + else if (insert_before) + size2 = sy - size - 1; else size2 = size; if (size2 < PANE_MINIMUM) |