From 99591137467b2f9113607c4eecdf87d3ee7a94ee Mon Sep 17 00:00:00 2001 From: Andrzej Pacanowski Date: Fri, 30 Sep 2016 15:25:55 +0200 Subject: vim-patch:7.4.1549 Problem: Test for syntax attributes fails in Win32 GUI. Solution: Use an existing font name. https://github.com/vim/vim/commit/c835293d54c223627c7d4516ee273c21a3506fa1 --- src/nvim/testdir/test_syn_attr.vim | 8 ++++++-- src/nvim/version.c | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/nvim/testdir/test_syn_attr.vim b/src/nvim/testdir/test_syn_attr.vim index 809442eb94..94d6b8735f 100644 --- a/src/nvim/testdir/test_syn_attr.vim +++ b/src/nvim/testdir/test_syn_attr.vim @@ -16,9 +16,13 @@ func Test_missing_attr() call assert_equal('', synIDattr(hlID("Mine"), "undercurl", 'gui')) if has('gui') - hi Mine guifg=blue guibg=red font=something + let fontname = getfontname() + if fontname == '' + let fontname = 'something' + endif + exe 'hi Mine guifg=blue guibg=red font=' . escape(fontname, ' \') call assert_equal('blue', synIDattr(hlID("Mine"), "fg", 'gui')) call assert_equal('red', synIDattr(hlID("Mine"), "bg", 'gui')) - call assert_equal('something', synIDattr(hlID("Mine"), "font", 'gui')) + call assert_equal(fontname, synIDattr(hlID("Mine"), "font", 'gui')) endif endfunc diff --git a/src/nvim/version.c b/src/nvim/version.c index 302e78cb6c..06e676d72c 100644 --- a/src/nvim/version.c +++ b/src/nvim/version.c @@ -894,7 +894,7 @@ static int included_patches[] = { 1552, 1551, 1550, - // 1549, + 1549, 1548, 1547, 1546, -- cgit