From 96a7cf1e6a133979eca4d1a8bf0e3bc3887a886d Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Thu, 23 Jul 2009 12:33:48 +0000 Subject: 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. --- tmux.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tmux.h') 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; -- cgit v1.2.3