]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.2093: Unsupported option causes skipping of modeline test v9.0.2093
authorzeertzjq <zeertzjq@outlook.com>
Wed, 8 Nov 2023 19:48:05 +0000 (20:48 +0100)
committerChristian Brabandt <cb@256bit.org>
Wed, 8 Nov 2023 19:51:02 +0000 (20:51 +0100)
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>
src/testdir/test_modeline.vim
src/version.c

index 9fb233cc22da49a43677a089076a3668a0366a2a..0a7240b89651baaddeb665bba4ccdadb4376dd82 100644 (file)
@@ -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
index 0d460249816ce345fb0ca46032df9990b0ec0c73..405689a7cc9ef99202661d7cfe835dc44307b8bf 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2093,
 /**/
     2092,
 /**/