summaryrefslogtreecommitdiffstats
path: root/cmd-send-prefix.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2008-06-03 21:42:37 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2008-06-03 21:42:37 +0000
commit9e6090a7a2a0d25499bce0dc68fd67289f3a5e39 (patch)
treefd99a49a5ae948c9a1eb618cae7fd26e68d554a4 /cmd-send-prefix.c
parent85d520c41e74056e59f11b5d1f6dd3f5602fa17a (diff)
Per-session configuration options.
Diffstat (limited to 'cmd-send-prefix.c')
-rw-r--r--cmd-send-prefix.c7
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);