0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.1.0997: using GUI colors in vim.exe when 'termguicolors' is off

Problem:    Using GUI colors in vim.exe when 'termguicolors' is off.
Solution:   Add condition for 'termguicolors' set. (Ken Takata, closes #4078)
This commit is contained in:
Bram Moolenaar
2019-03-07 06:40:27 +01:00
parent 6bb8c66c8b
commit d5a5886ce9
2 changed files with 3 additions and 1 deletions

View File

@@ -7844,7 +7844,7 @@ set_console_color_rgb(void)
return; return;
id = syn_name2id((char_u *)"Normal"); id = syn_name2id((char_u *)"Normal");
if (id > 0) if (id > 0 && p_tgc)
syn_id2colors(id, &fg, &bg); syn_id2colors(id, &fg, &bg);
if (fg == INVALCOLOR) if (fg == INVALCOLOR)
{ {

View File

@@ -779,6 +779,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
997,
/**/ /**/
996, 996,
/**/ /**/