mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 13:33:27 +00:00
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.
This commit is contained in:
3
tmux.h
3
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;
|
||||
|
Reference in New Issue
Block a user