summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2015-09-18 09:55:22 +0000
committernicm <nicm@openbsd.org>2015-09-18 09:55:22 +0000
commitb8a6cd8659b267a40b323330ceb9ed5345787937 (patch)
tree12fc1b7704d4a24caaf1683a419d60f520e8538f
parentMore ifmedia64 fallout. (diff)
downloadwireguard-openbsd-b8a6cd8659b267a40b323330ceb9ed5345787937.tar.xz
wireguard-openbsd-b8a6cd8659b267a40b323330ceb9ed5345787937.zip
-l should apply to the new not the old pane with -b, from "MadMaverick9"
on GitHub.
-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)