summaryrefslogtreecommitdiffstats
path: root/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-07-23 12:33:48 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-07-23 12:33:48 +0000
commit96a7cf1e6a133979eca4d1a8bf0e3bc3887a886d (patch)
tree933d922adf8575d75ff592501a8dc25730ecf76a /tmux.h
parent05b511f96aeede18a6cc9b7e1e1edb4bb4f70dd7 (diff)
Both of cmdclient and curclient CAN be NULL - if the command is executed from
the configuration file. In this case, attach-session can't do much, and new-session should just assume -d.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/tmux.h b/tmux.h
index 4e970535..455bb2ac 100644
--- a/tmux.h
+++ b/tmux.h
@@ -862,7 +862,8 @@ struct cmd_ctx {
* 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.
+ * cmdclient and curclient may both be NULL if the command is in the
+ * configuration file.
*/
struct client *curclient;
struct session *cursession;