diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2009-08-13 20:11:58 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2009-08-13 20:11:58 +0000 |
commit | 3ad4de6c8cbdc767c6ac40b99764cc7bd8db066a (patch) | |
tree | 542f3ff53b0bc779bf29cb1ca1483e3636a86255 /cmd-link-window.c | |
parent | 3026118c702fc0f17b860197b5242816927bbadb (diff) | |
download | rtmux-3ad4de6c8cbdc767c6ac40b99764cc7bd8db066a.tar.gz rtmux-3ad4de6c8cbdc767c6ac40b99764cc7bd8db066a.tar.bz2 rtmux-3ad4de6c8cbdc767c6ac40b99764cc7bd8db066a.zip |
Add a base-index session option to specify the first index checked when looking
for an index for a new window.
Diffstat (limited to 'cmd-link-window.c')
-rw-r--r-- | cmd-link-window.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd-link-window.c b/cmd-link-window.c index 742fb243..c13dbc90 100644 --- a/cmd-link-window.c +++ b/cmd-link-window.c @@ -77,6 +77,8 @@ cmd_link_window_exec(struct cmd *self, struct cmd_ctx *ctx) } } + if (idx == -1) + idx = -1 - options_get_number(&dst->options, "base-index"); wl_dst = session_attach(dst, wl_src->window, idx, &cause); if (wl_dst == NULL) { ctx->error(ctx, "create session failed: %s", cause); |