summaryrefslogtreecommitdiff
path: root/src/testdir/test_syntax.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-10-20 14:51:23 +0200
committerBram Moolenaar <Bram@vim.org>2019-10-20 14:51:23 +0200
commit83e9a1ce75818a78c5ddf8dcfb820634ca6fabff (patch)
treeefa636e045daf54a4f57e8bbb7974d89a7d6ab45 /src/testdir/test_syntax.vim
parent82260afb0ec358f50df9816511f480d455a1cdac (diff)
downloadvim-git-83e9a1ce75818a78c5ddf8dcfb820634ca6fabff.tar.gz
patch 8.1.2190: syntax test fails on Macv8.1.2190
Problem: Syntax test fails on Mac. Solution: Limit the window size to 20 rows.
Diffstat (limited to 'src/testdir/test_syntax.vim')
-rw-r--r--src/testdir/test_syntax.vim6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/testdir/test_syntax.vim b/src/testdir/test_syntax.vim
index c87b3d65e..21ee8dc62 100644
--- 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")