mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
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.
cb36c2a3cd
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -562,12 +562,8 @@ func Test_match_invalid_byte()
|
|||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func Test_match_illegal_byte()
|
func Test_match_illegal_byte()
|
||||||
let lines =<< trim END
|
" Text has illegal bytes which need to be set explicitly
|
||||||
silent! buffer ÿ\c
|
let lines = ["norm :set no\x01\<CR>", "silent n\xff", "silent norm :b\xff\<CR>"]
|
||||||
next ÿ
|
|
||||||
0scriptnames
|
|
||||||
source
|
|
||||||
END
|
|
||||||
call writefile(lines, 'Xregexp')
|
call writefile(lines, 'Xregexp')
|
||||||
call system(GetVimCommand() .. ' -X -Z -e -s -S Xregexp -c qa!')
|
call system(GetVimCommand() .. ' -X -Z -e -s -S Xregexp -c qa!')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user