diff options
| author | 2017-01-24 20:15:32 +0000 | |
|---|---|---|
| committer | 2017-01-24 20:15:32 +0000 | |
| commit | d96735def3eb4a7eb9a7ce9fbaf0891a00e7546d (patch) | |
| tree | b7103cfbde271f4450ea082293735707a5a81166 /usr.bin/tmux/cmd-switch-client.c | |
| parent | Convert terminal-overrides to an array option. (diff) | |
| download | wireguard-openbsd-d96735def3eb4a7eb9a7ce9fbaf0891a00e7546d.tar.xz wireguard-openbsd-d96735def3eb4a7eb9a7ce9fbaf0891a00e7546d.zip | |
Make update-environment an array as well.
Diffstat (limited to 'usr.bin/tmux/cmd-switch-client.c')
| -rw-r--r-- | usr.bin/tmux/cmd-switch-client.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/usr.bin/tmux/cmd-switch-client.c b/usr.bin/tmux/cmd-switch-client.c index b4680165bef..ffd45dc692f 100644 --- a/usr.bin/tmux/cmd-switch-client.c +++ b/usr.bin/tmux/cmd-switch-client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-switch-client.c,v 1.45 2017/01/06 13:26:09 nicm Exp $ */ +/* $OpenBSD: cmd-switch-client.c,v 1.46 2017/01/24 20:15:32 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -53,7 +53,7 @@ cmd_switch_client_exec(struct cmd *self, struct cmdq_item *item) struct client *c = state->c; struct session *s = item->state.tflag.s; struct window_pane *wp; - const char *tablename, *update; + const char *tablename; struct key_table *table; if (args_has(args, 'r')) @@ -102,10 +102,8 @@ cmd_switch_client_exec(struct cmd *self, struct cmdq_item *item) } } - if (!args_has(args, 'E')) { - update = options_get_string(s->options, "update-environment"); - environ_update(update, c->environ, s->environ); - } + if (!args_has(args, 'E')) + environ_update(s->options, c->environ, s->environ); if (c->session != NULL && c->session != s) c->last_session = c->session; |
