diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2013-02-20 10:59:02 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2013-02-20 10:59:02 +0000 |
commit | f81d72326458ec421348ab5aecc7038c1850407c (patch) | |
tree | 1a6c69c7125fa46d846064e71d5f171a6d4f6c22 /cmd.c | |
parent | e487b87f6f5bb862f9b185f3791b99fa99083ce9 (diff) | |
parent | afd5e978cf8dca6dcd824b224ce798f6b7522605 (diff) | |
download | rtmux-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.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); } |