commit 96a514ed464d5583bebd2d3631cbcb8cd71b45e3
parent c5dbee7910b18b74064e2c5c44a35ca36f24a7a5
Author: Jan Edmund Lazo <jan.lazo@mail.utoronto.ca>
Date: Mon, 20 Oct 2025 20:42:01 -0400
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.
https://github.com/vim/vim/commit/cb36c2a3cdd5610487dd830d430bf022f288328d
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat:
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git 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\<CR>", "silent n\xff", "silent norm :b\xff\<CR>"]
call writefile(lines, 'Xregexp')
call system(GetVimCommand() .. ' -X -Z -e -s -S Xregexp -c qa!')