From f2451c1e29d60b505855d7b0ca2077e2ae3e1dc8 Mon Sep 17 00:00:00 2001 From: Tiago Cunha Date: Thu, 23 Jul 2009 13:25:27 +0000 Subject: Sync OpenBSD patchset 168: 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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tmux.h') diff --git a/tmux.h b/tmux.h index f7ccb4b7..47cc8aeb 100644 --- a/tmux.h +++ b/tmux.h @@ -1,4 +1,4 @@ -/* $Id: tmux.h,v 1.386 2009-07-23 13:10:38 tcunha Exp $ */ +/* $Id: tmux.h,v 1.387 2009-07-23 13:25:27 tcunha Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -861,7 +861,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