mirror of
https://github.com/tmate-io/tmate.git
synced 2025-04-15 15:08:18 +02:00
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:
parent
181e1bcffd
commit
edcb22a6fb
2
tmux.c
2
tmux.c
@ -462,7 +462,7 @@ main(int argc, char **argv)
|
|||||||
if (unlock)
|
if (unlock)
|
||||||
cmdflags &= ~CMD_STARTSERVER;
|
cmdflags &= ~CMD_STARTSERVER;
|
||||||
else if (argc == 0)
|
else if (argc == 0)
|
||||||
cmdflags |= CMD_STARTSERVER;
|
cmdflags |= CMD_STARTSERVER|CMD_SENDENVIRON;
|
||||||
else {
|
else {
|
||||||
/*
|
/*
|
||||||
* It sucks parsing the command string twice (in client and
|
* It sucks parsing the command string twice (in client and
|
||||||
|
Loading…
Reference in New Issue
Block a user