Skip to content

Commit b0eb14f

Browse files
committed
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)
1 parent 0c18319 commit b0eb14f

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

src/option.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8819,10 +8819,13 @@ set_bool_option(
88198819
# endif
88208820
highlight_gui_started();
88218821
# ifdef FEAT_VTP
8822-
control_console_color_rgb();
88238822
/* reset t_Co */
88248823
if (is_term_win32())
8824+
{
8825+
control_console_color_rgb();
88258826
set_termname(T_NAME);
8827+
init_highlight(TRUE, FALSE);
8828+
}
88268829
# endif
88278830
}
88288831
#endif

src/version.c

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

790790
static int included_patches[] =
791791
{ /* Add new patch number below this line */
792+
/**/
793+
123,
792794
/**/
793795
122,
794796
/**/

0 commit comments

Comments
 (0)