diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2013-02-20 10:25:15 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2013-02-20 10:25:15 +0000 |
commit | afd5e978cf8dca6dcd824b224ce798f6b7522605 (patch) | |
tree | 2075e930d58916d8b96da6bf1e42c299944ab3d7 /cmd.c | |
parent | e68b9abd0403d09c6af993427482e27c0f308765 (diff) | |
download | rtmux-afd5e978cf8dca6dcd824b224ce798f6b7522605.tar.gz rtmux-afd5e978cf8dca6dcd824b224ce798f6b7522605.tar.bz2 rtmux-afd5e978cf8dca6dcd824b224ce798f6b7522605.zip |
Need to set clients in context before changing their reference count.
Diffstat (limited to 'cmd.c')
-rw-r--r-- | cmd.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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); } |