diff options
author | 2013-03-22 15:54:29 +0000 | |
---|---|---|
committer | 2013-03-22 15:54:29 +0000 | |
commit | 523db3ccc8f13add20cd2f3df3d3117af13f538f (patch) | |
tree | b72b2bf4cf8382b5f4b3068ee386a60f0ff2df75 /usr.bin/tmux/cmd.c | |
parent | Clear last attributes after reset in string_cells, from George Nachman. (diff) | |
download | wireguard-openbsd-523db3ccc8f13add20cd2f3df3d3117af13f538f.tar.xz wireguard-openbsd-523db3ccc8f13add20cd2f3df3d3117af13f538f.zip |
Need to set clients in context before changing their reference count.
Diffstat (limited to 'usr.bin/tmux/cmd.c')
-rw-r--r-- | usr.bin/tmux/cmd.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd.c b/usr.bin/tmux/cmd.c index e41f71c2e30..fa921129db7 100644 --- a/usr.bin/tmux/cmd.c +++ b/usr.bin/tmux/cmd.c @@ -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 <nicm@users.sourceforge.net> @@ -134,13 +134,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); } |