1
0
forked from aniani/vim

patch 8.2.2559: MS-Windows: guifont test fails on Windows XP

Problem:    MS-Windows: guifont test fails on Windows XP.
Solution:   Check windowsversion().
This commit is contained in:
Bram Moolenaar
2021-02-28 23:13:40 +01:00
parent 057e84afe5
commit 3650fd7098
2 changed files with 5 additions and 1 deletions

View File

@@ -388,7 +388,9 @@ func Test_set_guifont()
call assert_fails('set guifont=xa1bc23d7f', 'E596:') call assert_fails('set guifont=xa1bc23d7f', 'E596:')
endif 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 " doing this four times used to cause a crash
set renderoptions=type:directx set renderoptions=type:directx
for i in range(5) for i in range(5)

View File

@@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
2559,
/**/ /**/
2558, 2558,
/**/ /**/