patch 8.2.2559: MS-Windows: guifont test fails on Windows XP
Problem: MS-Windows: guifont test fails on Windows XP.
Solution: Check windowsversion().
diff --git a/src/testdir/test_gui.vim b/src/testdir/test_gui.vim
index 0d504d5..69f140b 100644
--- a/src/testdir/test_gui.vim
+++ b/src/testdir/test_gui.vim
@@ -388,7 +388,9 @@
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)
diff --git a/src/version.c b/src/version.c
index b623c42..67fc08c 100644
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 2559,
+/**/
2558,
/**/
2557,