mirror of
https://github.com/vim/vim
synced 2025-07-16 09:12:00 +00:00
patch 9.0.2093: Unsupported option causes skipping of modeline test
Problem: Unsupported option causes rest of modeline test to be skipped. Solution: Revert the change from patch 8.2.1432. closes: #13499 closes: #13500 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
2a94e98792
commit
4d62a2f443
@ -164,7 +164,11 @@ func Test_modeline_colon()
|
||||
endfunc
|
||||
|
||||
func s:modeline_fails(what, text, error)
|
||||
call CheckOption(a:what)
|
||||
" Don't use CheckOption(), it would skip the whole test
|
||||
" just for a single un-supported option
|
||||
if !exists('+' .. a:what)
|
||||
return
|
||||
endif
|
||||
let fname = "Xmodeline_fails_" . a:what
|
||||
call writefile(['vim: set ' . a:text . ' :', 'nothing'], fname, 'D')
|
||||
let modeline = &modeline
|
||||
|
@ -704,6 +704,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
2093,
|
||||
/**/
|
||||
2092,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user