aboutsummaryrefslogtreecommitdiff
path: root/test/functional/terminal/highlight_spec.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-12-07 10:16:00 +0800
committerGitHub <noreply@github.com>2023-12-07 10:16:00 +0800
commit6c3ddd8c510a28d4acb777b9676a0d4137b309fa (patch)
tree81ebbe3f39bce37a69968cce0be25d43fa77a827 /test/functional/terminal/highlight_spec.lua
parent3198598e6974ae2009e816aeb96462cdfc3c59e9 (diff)
downloadrneovim-6c3ddd8c510a28d4acb777b9676a0d4137b309fa.tar.gz
rneovim-6c3ddd8c510a28d4acb777b9676a0d4137b309fa.tar.bz2
rneovim-6c3ddd8c510a28d4acb777b9676a0d4137b309fa.zip
test: set 'termguicolors' in outer Nvim instance (#26437)
Currently, the value of $COLORTERM in :terminal in tests depends on outer environment because of 'notermguicolors'. If $COLORTERM is not set in :terminal, an inner Nvim instance will try to detect 'termguicolors' support, which may interfere with tests. So set 'termguicolors' in outer Nvim instance unless $COLORTERM needs to be overridden, and unset it in inner Nvim instance when running TUI.
Diffstat (limited to 'test/functional/terminal/highlight_spec.lua')
-rw-r--r--test/functional/terminal/highlight_spec.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/terminal/highlight_spec.lua b/test/functional/terminal/highlight_spec.lua
index 2ac45771d4..4754d14052 100644
--- a/test/functional/terminal/highlight_spec.lua
+++ b/test/functional/terminal/highlight_spec.lua
@@ -143,7 +143,7 @@ it(':terminal highlight has lower precedence than editor #9964', function()
screen:attach({rgb=true})
-- Child nvim process in :terminal (with cterm colors).
funcs.termopen({
- nvim_prog_abs(), '-n', '-u', 'NORC', '-i', 'NONE', '--cmd', nvim_set,
+ nvim_prog_abs(), '-n', '-u', 'NORC', '-i', 'NONE', '--cmd', nvim_set .. ' notermguicolors',
'+hi Normal ctermfg=Blue ctermbg=Yellow',
'+norm! ichild nvim',
'+norm! oline 2',