0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 8.1.1595: MS-Windows with VIMDLL: colors wrong in console

Problem:    MS-Windows with VIMDLL: colors wrong in console.
Solution:   Do not set the GUI colors when not using the GUI. (Ken Takata,
            closes #4588)
This commit is contained in:
Bram Moolenaar 2019-06-26 00:34:15 +02:00
parent 2eed9bafa0
commit 88c47aa692
2 changed files with 6 additions and 0 deletions

View File

@ -9554,6 +9554,10 @@ set_hl_attr(
at_en.ae_u.cterm.bg_color = sgp->sg_cterm_bg;
# ifdef FEAT_TERMGUICOLORS
# ifdef MSWIN
# ifdef VIMDLL
// Only when not using the GUI.
if (!gui.in_use && !gui.starting)
# endif
{
int id;
guicolor_T fg, bg;

View File

@ -777,6 +777,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1595,
/**/
1594,
/**/