aboutsummaryrefslogtreecommitdiff
path: root/cmd-send-prefix.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-prefix.c
parent9e7a5fa5efd7b182fe726c245b37bdbb7e745083 (diff)
downloadrtmux-f11f71752a17d0ddd1005911cb01d5900a2d7780.tar.gz
rtmux-f11f71752a17d0ddd1005911cb01d5900a2d7780.tar.bz2
rtmux-f11f71752a17d0ddd1005911cb01d5900a2d7780.zip
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-prefix.c')
-rw-r--r--cmd-send-prefix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd-send-prefix.c b/cmd-send-prefix.c
index 441323bf..a450f643 100644
--- a/cmd-send-prefix.c
+++ b/cmd-send-prefix.c
@@ -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);
}