mirror of
https://github.com/tmux/tmux.git
synced 2025-09-03 06:17:04 +00:00
Per-session configuration options.
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user