diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2011-11-15 23:19:51 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2011-11-15 23:19:51 +0000 |
commit | 57df44291634e1083fccf29ecccc8b1793647e50 (patch) | |
tree | c93759746d1f177de3bb0cca0909c6aa984bb81b /cmd-split-window.c | |
parent | 9f738dd2fe01b5b70c07280450eed32614c561c2 (diff) | |
download | rtmux-57df44291634e1083fccf29ecccc8b1793647e50.tar.gz rtmux-57df44291634e1083fccf29ecccc8b1793647e50.tar.bz2 rtmux-57df44291634e1083fccf29ecccc8b1793647e50.zip |
Make window_pane_index work the same as window_index, from Ben Boeckel.
Diffstat (limited to 'cmd-split-window.c')
-rw-r--r-- | cmd-split-window.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd-split-window.c b/cmd-split-window.c index 31654771..b1b738b1 100644 --- a/cmd-split-window.c +++ b/cmd-split-window.c @@ -140,7 +140,8 @@ cmd_split_window_exec(struct cmd *self, struct cmd_ctx *ctx) environ_free(&env); if (args_has(args, 'P')) { - paneidx = window_pane_index(wl->window, new_wp); + if (window_pane_index(new_wp, &paneidx) != 0) + fatalx("index not found"); ctx->print(ctx, "%s:%u.%u", s->name, wl->idx, paneidx); } return (0); |