0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -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;