diff options
Diffstat (limited to 'src/testdir/test_modeline.vim')
-rw-r--r-- | src/testdir/test_modeline.vim | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/testdir/test_modeline.vim b/src/testdir/test_modeline.vim index 9fb233cc22..0a7240b896 100644 --- a/src/testdir/test_modeline.vim +++ b/src/testdir/test_modeline.vim @@ -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 |