Blame SOURCES/7.4.318

22c937
To: vim_dev@googlegroups.com
22c937
Subject: Patch 7.4.318
22c937
Fcc: outbox
22c937
From: Bram Moolenaar <Bram@moolenaar.net>
22c937
Mime-Version: 1.0
22c937
Content-Type: text/plain; charset=UTF-8
22c937
Content-Transfer-Encoding: 8bit
22c937
------------
22c937
22c937
Patch 7.4.318
22c937
Problem:    Check for whether a highlight group has settings ignores fg and bg
22c937
	    color settings.
22c937
Solution:   Also check cterm and GUI color settings. (Christian Brabandt)
22c937
Files:	    src/syntax.c
22c937
22c937
22c937
*** ../vim-7.4.317/src/syntax.c	2014-03-23 15:12:29.939264336 +0100
22c937
--- src/syntax.c	2014-06-12 12:16:13.851530931 +0200
22c937
***************
22c937
*** 8043,8050 ****
22c937
--- 8043,8056 ----
22c937
  {
22c937
      return (   HL_TABLE()[idx].sg_term_attr != 0
22c937
  	    || HL_TABLE()[idx].sg_cterm_attr != 0
22c937
+ 	    || HL_TABLE()[idx].sg_cterm_fg != 0
22c937
+ 	    || HL_TABLE()[idx].sg_cterm_bg != 0
22c937
  #ifdef FEAT_GUI
22c937
  	    || HL_TABLE()[idx].sg_gui_attr != 0
22c937
+ 	    || HL_TABLE()[idx].sg_gui_fg_name != NULL
22c937
+ 	    || HL_TABLE()[idx].sg_gui_bg_name != NULL
22c937
+ 	    || HL_TABLE()[idx].sg_gui_sp_name != NULL
22c937
+ 	    || HL_TABLE()[idx].sg_font_name != NUL
22c937
  #endif
22c937
  	    || (check_link && (HL_TABLE()[idx].sg_set & SG_LINK)));
22c937
  }
22c937
*** ../vim-7.4.317/src/version.c	2014-06-12 11:49:42.219470717 +0200
22c937
--- src/version.c	2014-06-12 12:17:25.607533645 +0200
22c937
***************
22c937
*** 736,737 ****
22c937
--- 736,739 ----
22c937
  {   /* Add new patch number below this line */
22c937
+ /**/
22c937
+     318,
22c937
  /**/
22c937
22c937
-- 
22c937
The software said it requires Windows 95 or better, so I installed Linux.
22c937
22c937
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
22c937
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
22c937
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
22c937
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///