1
0
forked from aniani/vim

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.
This commit is contained in:
Bram Moolenaar
2022-07-29 18:32:20 +01:00
parent f50940531d
commit cb36c2a3cd
2 changed files with 4 additions and 6 deletions

View File

@@ -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!')

View File

@@ -735,6 +735,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
106,
/**/
105,
/**/