summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-08-10 20:51:29 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-08-10 20:51:29 +0000
commitedcb22a6fb51f7862ffe694df8c0bdaffdaa8895 (patch)
tree0fa565891d1affe7a0d05810693e9419bfe2016f
parent181e1bcffd1f728d0ec32f66b027507857daa598 (diff)
No arguments are the same as new-session and this requires the environment to
be sent, so set that flag too when argc == 0.
-rw-r--r--tmux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tmux.c b/tmux.c
index 72ea52b3..af099e3f 100644
--- a/tmux.c
+++ b/tmux.c
@@ -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