diff options
author | 2015-09-18 09:55:22 +0000 | |
---|---|---|
committer | 2015-09-18 09:55:22 +0000 | |
commit | b8a6cd8659b267a40b323330ceb9ed5345787937 (patch) | |
tree | 12fc1b7704d4a24caaf1683a419d60f520e8538f | |
parent | More ifmedia64 fallout. (diff) | |
download | wireguard-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.c | 6 |
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) |