aboutsummaryrefslogtreecommitdiff
path: root/cmd.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2013-02-20 10:59:02 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2013-02-20 10:59:02 +0000
commitf81d72326458ec421348ab5aecc7038c1850407c (patch)
tree1a6c69c7125fa46d846064e71d5f171a6d4f6c22 /cmd.c
parente487b87f6f5bb862f9b185f3791b99fa99083ce9 (diff)
parentafd5e978cf8dca6dcd824b224ce798f6b7522605 (diff)
downloadrtmux-f81d72326458ec421348ab5aecc7038c1850407c.tar.gz
rtmux-f81d72326458ec421348ab5aecc7038c1850407c.tar.bz2
rtmux-f81d72326458ec421348ab5aecc7038c1850407c.zip
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
Diffstat (limited to 'cmd.c')
-rw-r--r--cmd.c5
1 files changed, 4 insertions, 1 deletions
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);
}