To: vim_dev@googlegroups.com Subject: Patch 7.4.1800 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 7.4.1800 (after 7.4.1799) Problem: Unnecessary #ifdef. Solution: Just use USE_24BIT. (Ken Takata) Files: src/syntax.c *** ../vim-7.4.1799/src/syntax.c 2016-04-29 22:58:25.626876587 +0200 --- src/syntax.c 2016-04-30 12:24:29.496977356 +0200 *************** *** 7795,7807 **** # if defined(FEAT_GUI) || defined(FEAT_TERMGUICOLORS) /* In GUI guifg colors are only used when recognized */ i = color_name2handle(arg); ! if (i != INVALCOLOR || STRCMP(arg, "NONE") == 0 ! # ifdef FEAT_GUI ! || !(USE_24BIT) ! # else ! || !p_tgc ! # endif ! ) { HL_TABLE()[idx].sg_gui_fg = i; # endif --- 7795,7801 ---- # if defined(FEAT_GUI) || defined(FEAT_TERMGUICOLORS) /* In GUI guifg colors are only used when recognized */ i = color_name2handle(arg); ! if (i != INVALCOLOR || STRCMP(arg, "NONE") == 0 || !USE_24BIT) { HL_TABLE()[idx].sg_gui_fg = i; # endif *** ../vim-7.4.1799/src/version.c 2016-04-29 22:58:25.626876587 +0200 --- src/version.c 2016-04-30 12:26:13.951782711 +0200 *************** *** 755,756 **** --- 755,758 ---- { /* Add new patch number below this line */ + /**/ + 1800, /**/ -- Dreams are free, but there's a small charge for alterations. /// 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 ///