Skip to content

Commit d5a5886

Browse files
committed
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)
1 parent 6bb8c66 commit d5a5886

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/os_win32.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7844,7 +7844,7 @@ set_console_color_rgb(void)
78447844
return;
78457845

78467846
id = syn_name2id((char_u *)"Normal");
7847-
if (id > 0)
7847+
if (id > 0 && p_tgc)
78487848
syn_id2colors(id, &fg, &bg);
78497849
if (fg == INVALCOLOR)
78507850
{

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -779,6 +779,8 @@ static char *(features[]) =
779779

780780
static int included_patches[] =
781781
{ /* Add new patch number below this line */
782+
/**/
783+
997,
782784
/**/
783785
996,
784786
/**/

0 commit comments

Comments
 (0)