diff src/testdir/test_syntax.vim @ 18392:e15c1d8a6b99 v8.1.2190

patch 8.1.2190: syntax test fails on Mac Commit: https://github.com/vim/vim/commit/83e9a1ce75818a78c5ddf8dcfb820634ca6fabff Author: Bram Moolenaar <Bram@vim.org> Date: Sun Oct 20 14:51:23 2019 +0200 patch 8.1.2190: syntax test fails on Mac Problem: Syntax test fails on Mac. Solution: Limit the window size to 20 rows.
author Bram Moolenaar <Bram@vim.org>
date Sun, 20 Oct 2019 15:00:03 +0200
parents c34ee31d0878
children 5bef1043abff
line wrap: on
line diff
--- a/src/testdir/test_syntax.vim
+++ b/src/testdir/test_syntax.vim
@@ -538,9 +538,7 @@ func Test_syntax_c()
   endif
   call writefile([
 	\ '/* comment line at the top */',
-	\ '  int',
-	\ 'main(int argc, char **argv)// another comment',
-	\ '{',
+	\ 'int main(int argc, char **argv) { // another comment',
 	\ '#if 0',
 	\ '   int   not_used;',
 	\ '#else',
@@ -564,7 +562,7 @@ func Test_syntax_c()
   " response to t_RB corrects it to "light".
   let $COLORFGBG = '15;0'
 
-  let buf = RunVimInTerminal('Xtest.c', #{rows: 22})
+  let buf = RunVimInTerminal('Xtest.c', {})
   call term_sendkeys(buf, ":syn keyword Search Note\r")
   call term_sendkeys(buf, ":syn match Error /^\\s\\+$/\r")
   call term_sendkeys(buf, ":set hlsearch\r")