diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2010-01-07 20:02:01 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2010-01-07 20:02:01 +0000 |
commit | 526bb6f3e949fb2c530cd14b87869e693147463e (patch) | |
tree | 91418695ceccadfdd4a8613ece9868acb0e8c532 /cmd-split-window.c | |
parent | 462a11301aaf06dab52b06a9c52ed12d99537c5f (diff) | |
download | rtmux-526bb6f3e949fb2c530cd14b87869e693147463e.tar.gz rtmux-526bb6f3e949fb2c530cd14b87869e693147463e.tar.bz2 rtmux-526bb6f3e949fb2c530cd14b87869e693147463e.zip |
Use the specified pane for size calculations. Doh.
Diffstat (limited to 'cmd-split-window.c')
-rw-r--r-- | cmd-split-window.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd-split-window.c b/cmd-split-window.c index 2941e2bf..c159a714 100644 --- a/cmd-split-window.c +++ b/cmd-split-window.c @@ -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"); |