summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/tmux.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2020-03-31 17:14:40 +0000
committernicm <nicm@openbsd.org>2020-03-31 17:14:40 +0000
commitd6f6a5d22f7b4169161e9056890b99e32b72e5e9 (patch)
treec66b9cb6b86fed17382e1ca23270b11fc655c4eb /usr.bin/tmux/tmux.c
parentAdd a -T flag to resize-pane to trim lines below the cursor, moving (diff)
downloadwireguard-openbsd-d6f6a5d22f7b4169161e9056890b99e32b72e5e9.tar.xz
wireguard-openbsd-d6f6a5d22f7b4169161e9056890b99e32b72e5e9.zip
Add a way to mark environment variables as "hidden" so they can be used
by tmux but are not passed into the environment of new panes.
Diffstat (limited to 'usr.bin/tmux/tmux.c')
-rw-r--r--usr.bin/tmux/tmux.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/tmux.c b/usr.bin/tmux/tmux.c
index b75d851d381..fcf62444054 100644
--- a/usr.bin/tmux/tmux.c
+++ b/usr.bin/tmux/tmux.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tmux.c,v 1.194 2020/03/17 11:10:12 nicm Exp $ */
+/* $OpenBSD: tmux.c,v 1.195 2020/03/31 17:14:40 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -332,9 +332,9 @@ main(int argc, char **argv)
global_environ = environ_create();
for (var = environ; *var != NULL; var++)
- environ_put(global_environ, *var);
+ environ_put(global_environ, *var, 0);
if ((cwd = find_cwd()) != NULL)
- environ_set(global_environ, "PWD", "%s", cwd);
+ environ_set(global_environ, "PWD", 0, "%s", cwd);
global_options = options_create(NULL);
global_s_options = options_create(NULL);