vim-patch:7.4.1851 (#5947)

Problem:    test_syn_attr failes when using the GUI. (Dominique Pelle)
Solution:   Escape the font name properly.

180fc2d418
This commit is contained in:
Shougo 2017-01-15 08:41:43 +09:00 committed by Justin M. Keyes
parent a265ff448e
commit 1474304224
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ func Test_missing_attr()
if fontname == ''
let fontname = 'something'
endif
exe 'hi Mine guifg=blue guibg=red font=' . escape(fontname, ' \')
exe "hi Mine guifg=blue guibg=red font='" . fontname . "'"
call assert_equal('blue', synIDattr(hlID("Mine"), "fg", 'gui'))
call assert_equal('red', synIDattr(hlID("Mine"), "bg", 'gui'))
call assert_equal(fontname, synIDattr(hlID("Mine"), "font", 'gui'))

View File

@ -589,7 +589,7 @@ static int included_patches[] = {
// 1854 NA
// 1853 NA
// 1852 NA
// 1851,
1851,
// 1850 NA
// 1849 NA
// 1848 NA