# HG changeset patch # User Bram Moolenaar # Date 1551937509 -3600 # Node ID e73ed0e3faac8bd36bf73c8196bebb0e636bf2f2 # Parent 0a927b1cd06dfb2916bd12524e8049098d992a42 patch 8.1.0997: using GUI colors in vim.exe when 'termguicolors' is off commit https://github.com/vim/vim/commit/d5a5886ce90a30efc830b0053472735c5bbb4b0f Author: Bram Moolenaar Date: Thu Mar 7 06:40:27 2019 +0100 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 https://github.com/vim/vim/issues/4078) diff --git a/src/os_win32.c b/src/os_win32.c --- a/src/os_win32.c +++ b/src/os_win32.c @@ -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) { diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -780,6 +780,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 997, +/**/ 996, /**/ 995,