# HG changeset patch # User Christian Brabandt # Date 1699473606 -3600 # Node ID 2bfde43727e9d7fe19ce0e7a5b7140726d6ad63a # Parent 29042655f43ba9c79c15bdb44737559f8708d7fa patch 9.0.2093: Unsupported option causes skipping of modeline test Commit: https://github.com/vim/vim/commit/4d62a2f4439196c1cc0b2d0fc13a56dd03711b4d Author: zeertzjq Date: Wed Nov 8 20:48:05 2023 +0100 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 Signed-off-by: Christian Brabandt diff --git a/src/testdir/test_modeline.vim b/src/testdir/test_modeline.vim --- 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 diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -705,6 +705,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 2093, +/**/ 2092, /**/ 2091,