From edcb22a6fb51f7862ffe694df8c0bdaffdaa8895 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Mon, 10 Aug 2009 20:51:29 +0000 Subject: [PATCH] No arguments are the same as new-session and this requires the environment to be sent, so set that flag too when argc == 0. --- tmux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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