=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/tmux.h,v retrieving revision 1.34 retrieving revision 1.35 diff -u -r1.34 -r1.35 --- src/usr.bin/tmux/tmux.h 2009/07/17 07:05:58 1.34 +++ src/usr.bin/tmux/tmux.h 2009/07/17 15:03:11 1.35 @@ -1,4 +1,4 @@ -/* $OpenBSD: tmux.h,v 1.34 2009/07/17 07:05:58 nicm Exp $ */ +/* $OpenBSD: tmux.h,v 1.35 2009/07/17 15:03:11 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -835,8 +835,18 @@ 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 *, ...);