Mercurial > vim
changeset 24035:ee5b6208f725 v8.2.2559
patch 8.2.2559: MS-Windows: guifont test fails on Windows XP
Commit: https://github.com/vim/vim/commit/3650fd709807d5ac182e28d952cbd790c1ad0a6a
Author: Bram Moolenaar <Bram@vim.org>
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().
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 28 Feb 2021 23:15:03 +0100 |
parents | 2d16022ab61c |
children | cb3227f4d7a8 |
files | src/testdir/test_gui.vim src/version.c |
diffstat | 2 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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)