From 73a15037e0c3a93e91942f25e98f7484c911f13f Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Thu, 7 Jan 2010 20:02:02 +0000 Subject: Use the specified pane for size calculations. Doh. --- usr.bin/tmux/cmd-split-window.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.bin/tmux') 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 @@ -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"); -- cgit v1.2.3