#ifdef FEAT_GUI
return gui.norm_pixel;
#endif
-#if defined(FEAT_TERMGUICOLORS) && defined(FEAT_GUI)
- else
-#endif
#ifdef FEAT_TERMGUICOLORS
+ if (cterm_normal_fg_gui_color != (long_u)INVALCOLOR)
return cterm_normal_fg_gui_color;
+ /* Guess that the foreground is black or white. */
+ return GUI_GET_COLOR((char_u *)(*p_bg == 'l' ? "black" : "white"));
#endif
}
if (STRICMP(name, "bg") == 0 || STRICMP(name, "background") == 0)
#ifdef FEAT_GUI
return gui.back_pixel;
#endif
-#if defined(FEAT_TERMGUICOLORS) && defined(FEAT_GUI)
- else
-#endif
#ifdef FEAT_TERMGUICOLORS
+ if (cterm_normal_bg_gui_color != (long_u)INVALCOLOR)
return cterm_normal_bg_gui_color;
+ /* Guess that the background is white or black. */
+ return GUI_GET_COLOR((char_u *)(*p_bg == 'l' ? "white" : "black"));
#endif
}
&& aep->ae_u.cterm.bg_rgb
== taep->ae_u.cterm.bg_rgb
#endif
-
)))
return i + ATTR_OFF;