From 751fa9dd817e251707810d90288e186ca23e6949 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Thu, 23 Jul 2009 12:33:49 +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. --- usr.bin/tmux/tmux.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'usr.bin/tmux/tmux.h') 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 @@ -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