No arguments are the same as new-session and this requires the environment to

be sent, so set that flag too when argc == 0.
This commit is contained in:
Nicholas Marriott 2009-08-10 20:51:29 +00:00
parent 181e1bcffd
commit edcb22a6fb

2
tmux.c
View File

@ -462,7 +462,7 @@ main(int argc, char **argv)
if (unlock)
cmdflags &= ~CMD_STARTSERVER;
else if (argc == 0)
cmdflags |= CMD_STARTSERVER;
cmdflags |= CMD_STARTSERVER|CMD_SENDENVIRON;
else {
/*
* It sucks parsing the command string twice (in client and