From: Bram Moolenaar Date: Sat, 28 May 2016 11:28:10 +0000 (+0200) Subject: patch 7.4.1851 X-Git-Tag: v7.4.1851 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=180fc2d41812c49b60224a1ca89945a002a090f5;p=vim 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 index 51674d0ee..fe6acaf6e 100644 --- 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 index 80793f10b..73e08fafa 100644 --- a/src/version.c +++ b/src/version.c @@ -753,6 +753,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1851, /**/ 1850, /**/