# HG changeset patch # User Christian Brabandt # Date 1530192607 -7200 # Node ID 2bebc49116fdb6bcbeb9789c24a4fb49a49a0db6 # Parent 8abf8fd1347695852faa82e63f8573f26e9d73e5 patch 8.1.0123: MS-Windows: colors are wrong after setting 'notgc' commit https://github.com/vim/vim/commit/b0eb14f9392a8d95045182c4e520530319ce44c2 Author: Bram Moolenaar Date: Thu Jun 28 15:29:52 2018 +0200 patch 8.1.0123: MS-Windows: colors are wrong after setting 'notgc' Problem: MS-Windows: colors are wrong after setting 'notgc'. Solution: Only call control_console_color_rgb() for the win32 terminal. (Nobuhiro Takasaki, closes #3107) diff --git a/src/option.c b/src/option.c --- a/src/option.c +++ b/src/option.c @@ -8819,10 +8819,13 @@ set_bool_option( # endif highlight_gui_started(); # ifdef FEAT_VTP - control_console_color_rgb(); /* reset t_Co */ if (is_term_win32()) + { + control_console_color_rgb(); set_termname(T_NAME); + init_highlight(TRUE, FALSE); + } # endif } #endif diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -790,6 +790,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 123, +/**/ 122, /**/ 121,