From afd5e978cf8dca6dcd824b224ce798f6b7522605 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Wed, 20 Feb 2013 10:25:15 +0000 Subject: Need to set clients in context before changing their reference count. --- cmd.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cmd.c') diff --git a/cmd.c b/cmd.c index 23e86cff..5c02314f 100644 --- a/cmd.c +++ b/cmd.c @@ -133,13 +133,16 @@ int cmd_find_index_offset(const char *, struct session *, int *); struct window_pane *cmd_find_pane_offset(const char *, struct winlink *); struct cmd_ctx * -cmd_get_ctx(void) +cmd_get_ctx(struct client *cmdclient, struct client *curclient) { struct cmd_ctx *ctx; ctx = xcalloc(1, sizeof *ctx); ctx->references = 0; + ctx->cmdclient = cmdclient; + ctx->curclient = curclient; + cmd_ref_ctx(ctx); return (ctx); } -- cgit