summaryrefslogtreecommitdiffstats
path: root/layout.c
diff options
context:
space:
mode:
authornicm <nicm>2015-09-18 09:55:22 +0000
committernicm <nicm>2015-09-18 09:55:22 +0000
commit6b709e655e52a302f537d6995affdbaf4e8ef0f1 (patch)
tree54dd7d252a0b9fa1ab0399ca7b9fb4bec0fa3f43 /layout.c
parent8b5d5dca9f8fcb7832c48baeef10a0320776b30c (diff)
-l should apply to the new not the old pane with -b, from "MadMaverick9"
on GitHub.
Diffstat (limited to 'layout.c')
-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)