summaryrefslogtreecommitdiff
path: root/usr.bin/tmux
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2010-01-07 20:02:02 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2010-01-07 20:02:02 +0000
commit73a15037e0c3a93e91942f25e98f7484c911f13f (patch)
tree23217d6eb9d869db00a07c15991ebdd40b6d3554 /usr.bin/tmux
parent6c7816e1f16d205a59fdc3edc11d03c42edbb3d5 (diff)
Use the specified pane for size calculations. Doh.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r--usr.bin/tmux/cmd-split-window.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/cmd-split-window.c b/usr.bin/tmux/cmd-split-window.c
index f82888355fc..9712a74d594 100644
--- a/usr.bin/tmux/cmd-split-window.c
+++ b/usr.bin/tmux/cmd-split-window.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-split-window.c,v 1.17 2010/01/07 19:47:10 nicm Exp $ */
+/* $OpenBSD: cmd-split-window.c,v 1.18 2010/01/07 20:02:01 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -183,9 +183,9 @@ cmd_split_window_exec(struct cmd *self, struct cmd_ctx *ctx)
size = data->size;
else if (data->percentage != -1) {
if (type == LAYOUT_TOPBOTTOM)
- size = (w->active->sy * data->percentage) / 100;
+ size = (wp->sy * data->percentage) / 100;
else
- size = (w->active->sx * data->percentage) / 100;
+ size = (wp->sx * data->percentage) / 100;
}
hlimit = options_get_number(&s->options, "history-limit");