diff src/syntax.c @ 9054:f129fd3ebd98 v7.4.1812

commit https://github.com/vim/vim/commit/187147aedd588070d0676664d5076d046644094e Author: Bram Moolenaar <Bram@vim.org> Date: Sun May 1 13:09:57 2016 +0200 patch 7.4.1812 Problem: Failure on startup with Athena and Motif. Solution: Check for INVALCOLOR. (Kazunobu Kuriyama)
author Christian Brabandt <cb@256bit.org>
date Sun, 01 May 2016 13:15:05 +0200
parents f06767547415
children d6662acfc3de
line wrap: on
line diff
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -9261,8 +9261,8 @@ set_hl_attr(
 	at_en.ae_u.cterm.fg_color = sgp->sg_cterm_fg;
 	at_en.ae_u.cterm.bg_color = sgp->sg_cterm_bg;
 # ifdef FEAT_TERMGUICOLORS
-	at_en.ae_u.cterm.fg_rgb = GUI_MCH_GET_RGB(sgp->sg_gui_fg);
-	at_en.ae_u.cterm.bg_rgb = GUI_MCH_GET_RGB(sgp->sg_gui_bg);
+	at_en.ae_u.cterm.fg_rgb = GUI_MCH_GET_RGB2(sgp->sg_gui_fg);
+	at_en.ae_u.cterm.bg_rgb = GUI_MCH_GET_RGB2(sgp->sg_gui_bg);
 # endif
 	sgp->sg_cterm_attr = get_attr_entry(&cterm_attr_table, &at_en);
     }