mirror of
https://github.com/tmux/tmux.git
synced 2024-12-13 10:08:47 +00:00
Sync OpenBSD patchset 241:
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
c261ae32d2
commit
48ede1a00a
4
tmux.c
4
tmux.c
@ -1,4 +1,4 @@
|
||||
/* $Id: tmux.c,v 1.158 2009-08-09 17:48:55 tcunha Exp $ */
|
||||
/* $Id: tmux.c,v 1.159 2009-08-10 21:43:34 tcunha Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -471,7 +471,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
|
||||
|
Loading…
Reference in New Issue
Block a user