To: vim_dev@googlegroups.com Subject: Patch 7.4.1549 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 7.4.1549 (after 7.4.1547) Problem: Test for syntax attributes fails in Win32 GUI. Solution: Use an existing font name. Files: src/testdir/test_syn_attr.vim *** ../vim-7.4.1548/src/testdir/test_syn_attr.vim 2016-03-12 19:22:43.781293285 +0100 --- src/testdir/test_syn_attr.vim 2016-03-12 20:00:38.369534158 +0100 *************** *** 23,31 **** call assert_equal('', synIDattr(hlID("Mine"), "undercurl", 'gui')) if has('gui') ! hi Mine guifg=blue guibg=red font=something 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')) endif endfunc --- 23,35 ---- call assert_equal('', synIDattr(hlID("Mine"), "undercurl", 'gui')) if has('gui') ! 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(fontname, synIDattr(hlID("Mine"), "font", 'gui')) endif endfunc *** ../vim-7.4.1548/src/version.c 2016-03-12 19:33:43.430403350 +0100 --- src/version.c 2016-03-12 20:14:30.068855070 +0100 *************** *** 745,746 **** --- 745,748 ---- { /* Add new patch number below this line */ + /**/ + 1549, /**/ -- Time is an illusion. Lunchtime doubly so. -- Ford Prefect, in Douglas Adams' "The Hitchhiker's Guide to the Galaxy" /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///