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:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user