From 938be1e0ab1c3772f329f39225e651deb1cd6aca Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Sun, 1 Sep 2019 20:00:50 -0400 Subject: 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 --- src/nvim/testdir/test_syntax.vim | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') 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 -- cgit