=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/cmd.c,v retrieving revision 1.77 retrieving revision 1.78 diff -u -r1.77 -r1.78 --- src/usr.bin/tmux/cmd.c 2013/03/22 15:49:55 1.77 +++ src/usr.bin/tmux/cmd.c 2013/03/22 15:54:29 1.78 @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd.c,v 1.77 2013/03/22 15:49:55 nicm Exp $ */ +/* $OpenBSD: cmd.c,v 1.78 2013/03/22 15:54:29 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -134,12 +134,15 @@ 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);