diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-07-29 18:32:20 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-07-29 18:32:20 +0100 |
commit | cb36c2a3cdd5610487dd830d430bf022f288328d (patch) | |
tree | eb00cb8a915b831a48893568d5fbb584f748c888 /src/testdir | |
parent | f50940531dd57135fe60aa393ac9d3281f352d88 (diff) | |
download | vim-git-cb36c2a3cdd5610487dd830d430bf022f288328d.tar.gz |
patch 9.0.0106: illegal byte regexp test doesn't fail when fix is reversedv9.0.0106
Problem: Illegal byte regexp test doesn't fail when fix is reversed.
Solution: Make sure illegal bytes end up in sourced script file.
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/test_regexp_utf8.vim | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/testdir/test_regexp_utf8.vim b/src/testdir/test_regexp_utf8.vim index e7672ddd8..d665a6f0b 100644 --- a/src/testdir/test_regexp_utf8.vim +++ b/src/testdir/test_regexp_utf8.vim @@ -563,12 +563,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\<CR>", "silent n\xff", "silent norm :b\xff\<CR>"] call writefile(lines, 'Xregexp') call system(GetVimCommand() .. ' -X -Z -e -s -S Xregexp -c qa!') |