mirror of
https://github.com/neovim/neovim.git
synced 2026-05-01 11:34:56 +00:00
fix(terminal): also don't propagate $COLORTERM on Windows (#37699)
The same reason in #26440 applies to Windows as well.
This commit is contained in:
@@ -3327,8 +3327,8 @@ static const char *pty_ignored_env_vars[] = {
|
||||
"LINES",
|
||||
"TERMCAP",
|
||||
"COLORFGBG",
|
||||
"COLORTERM",
|
||||
#endif
|
||||
"COLORTERM",
|
||||
// Nvim-owned env vars. #6764
|
||||
"VIM",
|
||||
"VIMRUNTIME",
|
||||
@@ -3376,12 +3376,10 @@ dict_T *create_environment(const dictitem_T *job_env, const bool clear_env, cons
|
||||
tv_dict_item_remove(env, dv);
|
||||
}
|
||||
}
|
||||
#ifndef MSWIN
|
||||
// Set COLORTERM to "truecolor" if termguicolors is set
|
||||
if (p_tgc) {
|
||||
tv_dict_add_str(env, S_LEN("COLORTERM"), "truecolor");
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user