fix(terminal): never propagate $COLORTERM from outer env (#26440)

If $COLORTERM is "truecolor" but the user sets 'notermguicolors',
propagating $COLORTERM to :terminal usually doesn't work well.
This commit is contained in:
zeertzjq
2023-12-07 19:14:56 +08:00
committed by GitHub
parent 94c2703a03
commit aba954b662
4 changed files with 54 additions and 11 deletions

View File

@@ -38,8 +38,6 @@ module.nvim_argv = {
'--cmd', module.nvim_set,
-- Remove default mappings.
'--cmd', 'mapclear | mapclear!',
-- Unset $COLORTERM so that it won't propagate to :terminal when 'notermguicolors'.
'--cmd', 'unlet $COLORTERM',
-- Make screentest work after changing to the new default color scheme
-- Source 'vim' color scheme without side effects
-- TODO: rewrite tests