0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 7.4.1549

Problem:    Test for syntax attributes fails in Win32 GUI.
Solution:   Use an existing font name.
This commit is contained in:
Bram Moolenaar
2016-03-12 20:15:21 +01:00
parent 5a2800fd14
commit c835293d54
2 changed files with 8 additions and 2 deletions

View File

@@ -23,9 +23,13 @@ func Test_missing_attr()
call assert_equal('', synIDattr(hlID("Mine"), "undercurl", 'gui'))
if has('gui')
hi Mine guifg=blue guibg=red font=something
let fontname = getfontname()
if fontname == ''
let fontname = 'something'
endif
exe 'hi Mine guifg=blue guibg=red font=' . escape(fontname, ' \')
call assert_equal('blue', synIDattr(hlID("Mine"), "fg", 'gui'))
call assert_equal('red', synIDattr(hlID("Mine"), "bg", 'gui'))
call assert_equal('something', synIDattr(hlID("Mine"), "font", 'gui'))
call assert_equal(fontname, synIDattr(hlID("Mine"), "font", 'gui'))
endif
endfunc

View File

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