# HG changeset patch # User Bram Moolenaar # Date 1614550503 -3600 # Node ID ee5b6208f725bdfb3f428145aa8df4ae1c19c8d3 # Parent 2d16022ab61cf145ae0f29e3d23920bd93049de1 patch 8.2.2559: MS-Windows: guifont test fails on Windows XP Commit: https://github.com/vim/vim/commit/3650fd709807d5ac182e28d952cbd790c1ad0a6a Author: Bram Moolenaar Date: Sun Feb 28 23:13:40 2021 +0100 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 --- a/src/testdir/test_gui.vim +++ b/src/testdir/test_gui.vim @@ -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) diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 2559, +/**/ 2558, /**/ 2557,