diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2009-07-17 15:03:11 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2009-07-17 15:03:11 +0000 |
commit | ce53936a2b56521903d69bac565391e37ad7e115 (patch) | |
tree | 5a77d399e686fe3db9687c157b109d5945eaf38e /tmux.h | |
parent | 1938c994e7d9a27741735e6821217a16a134f039 (diff) | |
download | rtmux-ce53936a2b56521903d69bac565391e37ad7e115.tar.gz rtmux-ce53936a2b56521903d69bac565391e37ad7e115.tar.bz2 rtmux-ce53936a2b56521903d69bac565391e37ad7e115.zip |
Tidy up new-session and attach-session and change them to work from inside
tmux, switching the current client to the new or requested session.
Written with Josh Elsasser.
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -835,8 +835,18 @@ struct client_ctx { struct cmd_ctx { struct client *cmdclient; + /* + * curclient is the client where this command was executed if inside + * tmux. This is NULL if the command came from the command-line. + * + * cmdclient is the client which sent the MSG_COMMAND to the server, if + * any. This is NULL unless the command came from the command-line. + * + * One of curclient or cmdclient is always NULL and the other not. + */ struct client *curclient; struct session *cursession; + struct msg_command_data *msgdata; void (*print)(struct cmd_ctx *, const char *, ...); |