summaryrefslogtreecommitdiffstats
path: root/cmd-switch-client.c
diff options
context:
space:
mode:
authornicm <nicm>2015-07-06 14:24:57 +0000
committernicm <nicm>2015-07-06 14:24:57 +0000
commitb298478435c2e32b788566d1fab93dee1b71ff60 (patch)
treeeccb949c2d8fb232a7fe2353dab078dd54fe7e25 /cmd-switch-client.c
parentf557c7d8ca48c79136e4997b2cba0a08ee039257 (diff)
Update environment with -E when attach-session used on an already
attached session or switch-client used on the current session. From Cam Hutchison.
Diffstat (limited to 'cmd-switch-client.c')
-rw-r--r--cmd-switch-client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-switch-client.c b/cmd-switch-client.c
index 23751d73..4bac540d 100644
--- a/cmd-switch-client.c
+++ b/cmd-switch-client.c
@@ -119,7 +119,7 @@ cmd_switch_client_exec(struct cmd *self, struct cmd_q *cmdq)
}
}
- if (c != NULL && s != c->session && !args_has(args, 'E')) {
+ if (c != NULL && !args_has(args, 'E')) {
update = options_get_string(&s->options, "update-environment");
environ_update(update, &c->environ, &s->environ);
}