mirror of
https://github.com/neovim/neovim.git
synced 2025-10-09 03:16:31 +00:00
vim-patch:8.1.2190: syntax test fails on Mac
Problem: Syntax test fails on Mac.
Solution: Limit the window size to 20 rows.
83e9a1ce75
This commit is contained in:
@@ -502,9 +502,7 @@ func Test_syntax_c()
|
|||||||
endif
|
endif
|
||||||
call writefile([
|
call writefile([
|
||||||
\ '/* comment line at the top */',
|
\ '/* comment line at the top */',
|
||||||
\ ' int',
|
\ 'int main(int argc, char **argv) { // another comment',
|
||||||
\ 'main(int argc, char **argv)// another comment',
|
|
||||||
\ '{',
|
|
||||||
\ '#if 0',
|
\ '#if 0',
|
||||||
\ ' int not_used;',
|
\ ' int not_used;',
|
||||||
\ '#else',
|
\ '#else',
|
||||||
@@ -527,7 +525,7 @@ func Test_syntax_c()
|
|||||||
" response to t_RB corrects it to "light".
|
" response to t_RB corrects it to "light".
|
||||||
let $COLORFGBG = '15;0'
|
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 keyword Search Note\r")
|
||||||
call VerifyScreenDump(buf, 'Test_syntax_c_01', {})
|
call VerifyScreenDump(buf, 'Test_syntax_c_01', {})
|
||||||
call StopVimInTerminal(buf)
|
call StopVimInTerminal(buf)
|
||||||
|
Reference in New Issue
Block a user