summaryrefslogtreecommitdiffstats
path: root/cmd-send-keys.c
diff options
context:
space:
mode:
authorMicah Cowan <micah@micah.cowan.name>2010-05-22 21:56:04 +0000
committerMicah Cowan <micah@micah.cowan.name>2010-05-22 21:56:04 +0000
commitf11f71752a17d0ddd1005911cb01d5900a2d7780 (patch)
tree8a4b4b3396ff0bd62357047e19393e6af1313edc /cmd-send-keys.c
parent9e7a5fa5efd7b182fe726c245b37bdbb7e745083 (diff)
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.
Diffstat (limited to 'cmd-send-keys.c')
-rw-r--r--cmd-send-keys.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/cmd-send-keys.c b/cmd-send-keys.c
index 70a57717..c0c5f35a 100644
--- a/cmd-send-keys.c
+++ b/cmd-send-keys.c
@@ -1,4 +1,4 @@
-/* $Id: cmd-send-keys.c,v 1.24 2009-12-04 22:14:47 tcunha Exp $ */
+/* $Id: cmd-send-keys.c,v 1.25 2010-05-22 21:56:04 micahcowan Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -105,16 +105,17 @@ cmd_send_keys_exec(struct cmd *self, struct cmd_ctx *ctx)
{
struct cmd_send_keys_data *data = self->data;
struct window_pane *wp;
+ struct session *s;
u_int i;
if (data == NULL)
return (-1);
- if (cmd_find_pane(ctx, data->target, NULL, &wp) == NULL)
+ if (cmd_find_pane(ctx, data->target, &s, &wp) == NULL)
return (-1);
for (i = 0; i < data->nkeys; i++)
- window_pane_key(wp, ctx->curclient, data->keys[i]);
+ window_pane_key(wp, s, data->keys[i]);
return (0);
}