From e61ee94e26a82479b5de2ed4c1686625ea5d078d Mon Sep 17 00:00:00 2001 From: Tiago Cunha Date: Sun, 16 Aug 2009 19:16:27 +0000 Subject: Sync OpenBSD patchset 257: Add a base-index session option to specify the first index checked when looking for an index for a new window. --- cmd-link-window.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cmd-link-window.c') diff --git a/cmd-link-window.c b/cmd-link-window.c index 39cb5d26..7ab2a5d9 100644 --- a/cmd-link-window.c +++ b/cmd-link-window.c @@ -1,4 +1,4 @@ -/* $Id: cmd-link-window.c,v 1.31 2009-07-28 22:12:16 tcunha Exp $ */ +/* $Id: cmd-link-window.c,v 1.32 2009-08-16 19:16:27 tcunha Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -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); -- cgit