Pass in the session, rather than the client, to window modes' key() function.

We were only ever using the client to find the session anyway.
This commit is contained in:
Micah Cowan
2010-05-22 21:56:04 +00:00
parent 9e7a5fa5ef
commit f11f71752a
8 changed files with 41 additions and 42 deletions

View File

@ -1,4 +1,4 @@
/* $Id: cmd-send-prefix.c,v 1.28 2009-11-14 17:56:39 tcunha Exp $ */
/* $Id: cmd-send-prefix.c,v 1.29 2010-05-22 21:56:04 micahcowan Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -49,7 +49,7 @@ cmd_send_prefix_exec(struct cmd *self, struct cmd_ctx *ctx)
return (-1);
keylist = options_get_data(&s->options, "prefix");
window_pane_key(wp, ctx->curclient, ARRAY_FIRST(keylist));
window_pane_key(wp, s, ARRAY_FIRST(keylist));
return (0);
}