diff options
Diffstat (limited to 'cmd-send-prefix.c')
-rw-r--r-- | cmd-send-prefix.c | 7 |
1 files changed, 4 insertions, 3 deletions
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 <nicm@users.sourceforge.net> @@ -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); |