]> granicus.if.org Git - vim/commitdiff
patch 8.2.2559: MS-Windows: guifont test fails on Windows XP v8.2.2559
authorBram Moolenaar <Bram@vim.org>
Sun, 28 Feb 2021 22:13:40 +0000 (23:13 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 28 Feb 2021 22:13:40 +0000 (23:13 +0100)
Problem:    MS-Windows: guifont test fails on Windows XP.
Solution:   Check windowsversion().

src/testdir/test_gui.vim
src/version.c

index 0d504d5491d79efbcd23e2a77a9e1e963a3f7aa6..69f140b713e7bcd4b4e5c21a6c5e87b6e01bbe97 100644 (file)
@@ -388,7 +388,9 @@ func Test_set_guifont()
     call assert_fails('set guifont=xa1bc23d7f', 'E596:')
   endif
 
-  if exists('+renderoptions')
+  " This only works if 'renderoptions' exists and does not work for Windows XP
+  " and older. 
+  if exists('+renderoptions') && windowsversion() !~ '^[345]\.'
     " doing this four times used to cause a crash
     set renderoptions=type:directx
     for i in range(5)
index b623c42187cf67667bae0b345e56c88acc525daa..67fc08c683cdd50d498add997f95e05de3b95e32 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2559,
 /**/
     2558,
 /**/