# HG changeset patch # User Christian Brabandt # Date 1464435006 -7200 # Node ID 35422e34815f762d657d853e061ea45d02ff4093 # Parent e2761fc5a001f11063bc850fb6fecc806d87cd3c commit https://github.com/vim/vim/commit/180fc2d41812c49b60224a1ca89945a002a090f5 Author: Bram Moolenaar Date: Sat May 28 13:28:10 2016 +0200 patch 7.4.1851 Problem: test_syn_attr failes when using the GUI. (Dominique Pelle) Solution: Escape the font name properly. diff --git a/src/testdir/test_syn_attr.vim b/src/testdir/test_syn_attr.vim --- a/src/testdir/test_syn_attr.vim +++ b/src/testdir/test_syn_attr.vim @@ -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')) diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -754,6 +754,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1851, +/**/ 1850, /**/ 1849,