mirror of
https://github.com/neovim/neovim.git
synced 2025-10-01 15:38:33 +00:00
vim-patch:7.4.1549
Problem: Test for syntax attributes fails in Win32 GUI.
Solution: Use an existing font name.
c835293d54
This commit is contained in:
@@ -16,9 +16,13 @@ func Test_missing_attr()
|
|||||||
call assert_equal('', synIDattr(hlID("Mine"), "undercurl", 'gui'))
|
call assert_equal('', synIDattr(hlID("Mine"), "undercurl", 'gui'))
|
||||||
|
|
||||||
if has('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('blue', synIDattr(hlID("Mine"), "fg", 'gui'))
|
||||||
call assert_equal('red', synIDattr(hlID("Mine"), "bg", '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
|
endif
|
||||||
endfunc
|
endfunc
|
||||||
|
@@ -894,7 +894,7 @@ static int included_patches[] = {
|
|||||||
1552,
|
1552,
|
||||||
1551,
|
1551,
|
||||||
1550,
|
1550,
|
||||||
// 1549,
|
1549,
|
||||||
1548,
|
1548,
|
||||||
1547,
|
1547,
|
||||||
1546,
|
1546,
|
||||||
|
Reference in New Issue
Block a user