diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-06-23 07:41:21 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-06-23 07:41:21 +0000 |
commit | c24d849fa41114108b52a0a5e9256a7f0558b0d8 (patch) | |
tree | 93dbcffb22bbddf9181fbc3e89d93d8e36bb6afd /cmd-send-prefix.c | |
parent | e013970b0b0b44bf871233cffcf5ca77ce700e2e (diff) | |
download | rtmux-c24d849fa41114108b52a0a5e9256a7f0558b0d8.tar.gz rtmux-c24d849fa41114108b52a0a5e9256a7f0558b0d8.tar.bz2 rtmux-c24d849fa41114108b52a0a5e9256a7f0558b0d8.zip |
Split options into a table to allow abbreviations.
Diffstat (limited to 'cmd-send-prefix.c')
-rw-r--r-- | cmd-send-prefix.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/cmd-send-prefix.c b/cmd-send-prefix.c index 5751a44b..bcc82c3c 100644 --- a/cmd-send-prefix.c +++ b/cmd-send-prefix.c @@ -1,4 +1,4 @@ -/* $Id: cmd-send-prefix.c,v 1.17 2008-06-20 17:31:48 nicm Exp $ */ +/* $Id: cmd-send-prefix.c,v 1.18 2008-06-23 07:41:21 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -45,12 +45,13 @@ cmd_send_prefix_exec(struct cmd *self, struct cmd_ctx *ctx) struct cmd_target_data *data = self->data; struct session *s; struct winlink *wl; + int key; if ((wl = cmd_find_window(ctx, data->target, &s)) == NULL) return; - - window_key( - wl->window, ctx->curclient, options_get_key(&s->options, "prefix")); + + key = options_get_number(&s->options, "prefix"); + window_key(wl->window, ctx->curclient, key); if (ctx->cmdclient != NULL) server_write_client(ctx->cmdclient, MSG_EXIT, NULL, 0); |