diff --git a/test/old/testdir/test_regexp_utf8.vim b/test/old/testdir/test_regexp_utf8.vim index 17ce2d2627..5cd9c6e967 100644 --- a/test/old/testdir/test_regexp_utf8.vim +++ b/test/old/testdir/test_regexp_utf8.vim @@ -562,12 +562,8 @@ func Test_match_invalid_byte() endfunc func Test_match_illegal_byte() - let lines =<< trim END - silent! buffer ÿ\c - next ÿ - 0scriptnames - source - END + " Text has illegal bytes which need to be set explicitly + let lines = ["norm :set no\x01\", "silent n\xff", "silent norm :b\xff\"] call writefile(lines, 'Xregexp') call system(GetVimCommand() .. ' -X -Z -e -s -S Xregexp -c qa!')