diff src/testdir/screendump.vim @ 13320:a90063ec1cd6 v8.0.1534

patch 8.0.1534: C syntax test fails when using gvim commit https://github.com/vim/vim/commit/b7ea7cb8e430ea096b4c452cdc9c3299819e6d6b Author: Bram Moolenaar <Bram@vim.org> Date: Sat Feb 24 14:38:51 2018 +0100 patch 8.0.1534: C syntax test fails when using gvim Problem: C syntax test fails when using gvim Solution: Force running in a terminal. Check that 'background' is correct even when $COLORFGBG is set.
author Christian Brabandt <cb@256bit.org>
date Sat, 24 Feb 2018 14:45:05 +0100
parents 013c44d9dc09
children 0dc2e4998a15
line wrap: on
line diff
--- a/src/testdir/screendump.vim
+++ b/src/testdir/screendump.vim
@@ -24,7 +24,8 @@ func RunVimInTerminal(arguments, options
   hi Normal ctermfg=0 ctermbg=15
 
   let cmd = GetVimCommandClean()
-  let cmd .= ' ' . a:arguments
+  " Add -v to have gvim run in the terminal (if possible)
+  let cmd .= ' -v ' . a:arguments
   let buf = term_start(cmd, {'curwin': 1, 'term_rows': 20, 'term_cols': 75})
   call assert_equal([20, 75], term_getsize(buf))