summaryrefslogtreecommitdiff
path: root/usr.bin/tmux
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2015-09-18 09:55:23 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2015-09-18 09:55:23 +0000
commit0daa8c13e090c90f376ce0f7e0a9fc9aae8bae4f (patch)
tree87cb89a663f19cf3a42c49b3cebec2ae42f5970e /usr.bin/tmux
parent910fe8f7b6c91c793eef728116530caa125b8de9 (diff)
-l should apply to the new not the old pane with -b, from "MadMaverick9"
on GitHub.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r--usr.bin/tmux/layout.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/tmux/layout.c b/usr.bin/tmux/layout.c
index 743ffe6e85d..0f1bd787928 100644
--- a/usr.bin/tmux/layout.c
+++ b/usr.bin/tmux/layout.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: layout.c,v 1.23 2015/04/19 21:34:21 nicm Exp $ */
+/* $OpenBSD: layout.c,v 1.24 2015/09/18 09:55:22 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -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)