From f11f71752a17d0ddd1005911cb01d5900a2d7780 Mon Sep 17 00:00:00 2001 From: Micah Cowan Date: Sat, 22 May 2010 21:56:04 +0000 Subject: 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. --- cmd-send-prefix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmd-send-prefix.c') 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 @@ -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); } -- cgit