1
0
forked from aniani/vim

patch 7.4.1851

Problem:    test_syn_attr failes when using the GUI. (Dominique Pelle)
Solution:   Escape the font name properly.
This commit is contained in:
Bram Moolenaar
2016-05-28 13:28:10 +02:00
parent bf981eeb6b
commit 180fc2d418
2 changed files with 3 additions and 1 deletions

View File

@@ -27,7 +27,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

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