forked from aniani/vim
patch 8.2.2116: MS-Windows GUI: test for 'guifont' is incomplete
Problem: MS-Windows GUI: test for 'guifont' is incomplete. Solution: Set 'renderoptions'. (Christian Brabandt)
This commit is contained in:
@@ -386,13 +386,18 @@ func Test_set_guifont()
|
|||||||
if has('win32')
|
if has('win32')
|
||||||
" Invalid font names are accepted in GTK GUI
|
" Invalid font names are accepted in GTK GUI
|
||||||
call assert_fails('set guifont=xa1bc23d7f', 'E596:')
|
call assert_fails('set guifont=xa1bc23d7f', 'E596:')
|
||||||
|
endif
|
||||||
|
|
||||||
|
if exists('+renderoptions')
|
||||||
" doing this four times used to cause a crash
|
" doing this four times used to cause a crash
|
||||||
set guifont=
|
set renderoptions=type:directx
|
||||||
set guifont=
|
for i in range(5)
|
||||||
set guifont=
|
set guifont=
|
||||||
set guifont=
|
endfor
|
||||||
set guifont=
|
set renderoptions=
|
||||||
|
for i in range(5)
|
||||||
|
set guifont=
|
||||||
|
endfor
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if has('xfontset')
|
if has('xfontset')
|
||||||
|
@@ -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 */
|
||||||
|
/**/
|
||||||
|
2116,
|
||||||
/**/
|
/**/
|
||||||
2115,
|
2115,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user