0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -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;
id = syn_name2id((char_u *)"Normal");
if (id > 0)
if (id > 0 && p_tgc)
syn_id2colors(id, &fg, &bg);
if (fg == INVALCOLOR)
{