aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2015-09-18 12:01:07 +0100
committerThomas Adam <thomas@xteddy.org>2015-09-18 12:01:07 +0100
commit983357603a8c897e357668a18be7f00c0b6156ed (patch)
treefc16367cb37cc79218ae5c4d741e4f7eaef52dcb
parentc624382929fd677a064eb1d55ad350b5e0cb2ae8 (diff)
parent6b709e655e52a302f537d6995affdbaf4e8ef0f1 (diff)
downloadrtmux-983357603a8c897e357668a18be7f00c0b6156ed.tar.gz
rtmux-983357603a8c897e357668a18be7f00c0b6156ed.tar.bz2
rtmux-983357603a8c897e357668a18be7f00c0b6156ed.zip
Merge branch 'obsd-master'
-rw-r--r--layout.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/layout.c b/layout.c
index bb1bbf8d..266d1f39 100644
--- a/layout.c
+++ b/layout.c
@@ -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)