From d5a5886ce90a30efc830b0053472735c5bbb4b0f Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 7 Mar 2019 06:40:27 +0100 Subject: [PATCH] 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) --- src/os_win32.c | 2 +- src/version.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/os_win32.c b/src/os_win32.c index df6f7db78..876a7a409 100644 --- 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 index e1c8c61da..539a1e10d 100644 --- a/src/version.c +++ b/src/version.c @@ -779,6 +779,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 997, /**/ 996, /**/ -- 2.50.1