From 9e6090a7a2a0d25499bce0dc68fd67289f3a5e39 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 3 Jun 2008 21:42:37 +0000 Subject: Per-session configuration options. --- cmd-send-prefix.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'cmd-send-prefix.c') diff --git a/cmd-send-prefix.c b/cmd-send-prefix.c index 87a8ba69..117ec4c2 100644 --- a/cmd-send-prefix.c +++ b/cmd-send-prefix.c @@ -1,4 +1,4 @@ -/* $Id: cmd-send-prefix.c,v 1.11 2008-06-03 16:55:09 nicm Exp $ */ +/* $Id: cmd-send-prefix.c,v 1.12 2008-06-03 21:42:37 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -41,12 +41,13 @@ const struct cmd_entry cmd_send_prefix_entry = { void cmd_send_prefix_exec(void *ptr, struct cmd_ctx *ctx) { + struct session *s; struct winlink *wl; - if ((wl = cmd_windowonly_get(ptr, ctx, NULL)) == NULL) + if ((wl = cmd_windowonly_get(ptr, ctx, &s)) == NULL) return; - window_key(wl->window, prefix_key); + window_key(wl->window, options_get_number(&s->options, "prefix-key")); if (ctx->cmdclient != NULL) server_write_client(ctx->cmdclient, MSG_EXIT, NULL, 0); -- cgit