Skip to content

Commit 3650fd7

Browse files
committed
patch 8.2.2559: MS-Windows: guifont test fails on Windows XP
Problem: MS-Windows: guifont test fails on Windows XP. Solution: Check windowsversion().
1 parent 057e84a commit 3650fd7

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

src/testdir/test_gui.vim

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,9 @@ func Test_set_guifont()
388388
call assert_fails('set guifont=xa1bc23d7f', 'E596:')
389389
endif
390390

391-
if exists('+renderoptions')
391+
" This only works if 'renderoptions' exists and does not work for Windows XP
392+
" and older.
393+
if exists('+renderoptions') && windowsversion() !~ '^[345]\.'
392394
" doing this four times used to cause a crash
393395
set renderoptions=type:directx
394396
for i in range(5)

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,8 @@ static char *(features[]) =
750750

751751
static int included_patches[] =
752752
{ /* Add new patch number below this line */
753+
/**/
754+
2559,
753755
/**/
754756
2558,
755757
/**/

0 commit comments

Comments
 (0)