Mercurial > vim
changeset 29529:893f448af76d v9.0.0106
patch 9.0.0106: illegal byte regexp test doesn't fail when fix is reversed
Commit: https://github.com/vim/vim/commit/cb36c2a3cdd5610487dd830d430bf022f288328d
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jul 29 18:32:20 2022 +0100
patch 9.0.0106: illegal byte regexp test doesn't fail when fix is reversed
Problem: Illegal byte regexp test doesn't fail when fix is reversed.
Solution: Make sure illegal bytes end up in sourced script file.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 29 Jul 2022 19:45:02 +0200 |
parents | 6dd40b0de0fe |
children | 600c14c4ba44 |
files | src/testdir/test_regexp_utf8.vim src/version.c |
diffstat | 2 files changed, 4 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- 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!')