mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +00:00
Do not update TERM into config file parsing has finished.
This commit is contained in:
@ -222,7 +222,7 @@ environ_log(struct environ *env, const char *prefix)
|
||||
|
||||
/* Create initial environment for new child. */
|
||||
struct environ *
|
||||
environ_for_session(struct session *s)
|
||||
environ_for_session(struct session *s, int no_TERM)
|
||||
{
|
||||
struct environ *env;
|
||||
const char *value;
|
||||
@ -233,8 +233,10 @@ environ_for_session(struct session *s)
|
||||
if (s != NULL)
|
||||
environ_copy(s->environ, env);
|
||||
|
||||
value = options_get_string(global_options, "default-terminal");
|
||||
environ_set(env, "TERM", "%s", value);
|
||||
if (!no_TERM) {
|
||||
value = options_get_string(global_options, "default-terminal");
|
||||
environ_set(env, "TERM", "%s", value);
|
||||
}
|
||||
|
||||
if (s != NULL)
|
||||
idx = s->id;
|
||||
|
Reference in New Issue
Block a user