]> granicus.if.org Git - vim/commitdiff
patch 9.0.1372: test for 'toolbariconsize' may fail v9.0.1372
authorJames McCoy <jamessan@jamessan.com>
Thu, 2 Mar 2023 18:36:33 +0000 (18:36 +0000)
committerBram Moolenaar <Bram@vim.org>
Thu, 2 Mar 2023 18:36:33 +0000 (18:36 +0000)
Problem:    Test for 'toolbariconsize' may fail.
Solution:   Only test 'toolbariconsize' when it is supported. (James McCoy,
            closes #12095)

src/testdir/test_options.vim
src/version.c

index 7bd42164d02b3c5b97f738e06e85d05990349247..b3b90d142901ca55fd715ae6073933e0dcbd7edd 100644 (file)
@@ -1642,6 +1642,8 @@ func Test_string_option_revert_on_failure()
   endif
   if exists('+toolbar')
     call add(optlist, ['toolbar', 'text', 'a123'])
+  endif
+  if exists('+toolbariconsize')
     call add(optlist, ['toolbariconsize', 'medium', 'a123'])
   endif
   if exists('+ttymouse') && !has('gui')
index 56739e7630291305ad85b3fb2f003d7b02525766..bef7cf09c2aaed2ca98cdcc2715b62425dd0c8ff 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1372,
 /**/
     1371,
 /**/