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:
@@ -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'))
|
||||
|
||||
@@ -753,6 +753,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1851,
|
||||
/**/
|
||||
1850,
|
||||
/**/
|
||||
|
||||
Reference in New Issue
Block a user