summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2009-07-23 12:33:49 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2009-07-23 12:33:49 +0000
commit751fa9dd817e251707810d90288e186ca23e6949 (patch)
tree27d840c9bf0456519a7bbbcdfcca5a1e1dda64df /usr.bin/tmux/tmux.h
parent092997f9520ca914f82db00753afbf4ced0a4cc9 (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 'usr.bin/tmux/tmux.h')
-rw-r--r--usr.bin/tmux/tmux.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/tmux/tmux.h b/usr.bin/tmux/tmux.h
index 69481cd8704..55f110dfde5 100644
--- a/usr.bin/tmux/tmux.h
+++ b/usr.bin/tmux/tmux.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: tmux.h,v 1.51 2009/07/22 21:34:36 nicm Exp $ */
+/* $OpenBSD: tmux.h,v 1.52 2009/07/23 12:33:48 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -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;