aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-09-01 20:00:50 -0400
committerJustin M. Keyes <justinkz@gmail.com>2019-09-01 17:00:50 -0700
commit938be1e0ab1c3772f329f39225e651deb1cd6aca (patch)
tree9c336732b3d3004ff1de6c6a54f0dd653cba4ee1
parent801fe799ff359cdae66ed14f5e0b7c2c4cec9536 (diff)
downloadrneovim-938be1e0ab1c3772f329f39225e651deb1cd6aca.tar.gz
rneovim-938be1e0ab1c3772f329f39225e651deb1cd6aca.tar.bz2
rneovim-938be1e0ab1c3772f329f39225e651deb1cd6aca.zip
vim-patch:8.0.1534: C syntax test fails in gvim #10909
Problem: C syntax test fails when using gvim Solution: Force running in a terminal. Check that 'background' is correct even when $COLORFGBG is set. https://github.com/vim/vim/commit/b7ea7cb8e430ea096b4c452cdc9c3299819e6d6b
-rw-r--r--src/nvim/testdir/test_syntax.vim6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_syntax.vim b/src/nvim/testdir/test_syntax.vim
index d6b2a53727..598a00476c 100644
--- a/src/nvim/testdir/test_syntax.vim
+++ b/src/nvim/testdir/test_syntax.vim
@@ -520,10 +520,16 @@ func Test_syntax_c()
\ ' }',
\ '}',
\ ], 'Xtest.c')
+
+ " This makes the default for 'background' use "dark", check that the
+ " response to t_RB corrects it to "light".
+ let $COLORFGBG = '15;0'
+
let buf = RunVimInTerminal('Xtest.c', {})
call VerifyScreenDump(buf, 'Test_syntax_c_01')
call StopVimInTerminal(buf)
+ let $COLORFGBG = ''
call delete('Xtest.c')
endfun