changeset 17192:b8fafffb537b v8.1.1595

patch 8.1.1595: MS-Windows with VIMDLL: colors wrong in console commit https://github.com/vim/vim/commit/88c47aa692a4b1061f86624ea2503f31314f3975 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jun 26 00:34:15 2019 +0200 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)
author Bram Moolenaar <Bram@vim.org>
date Wed, 26 Jun 2019 00:45:04 +0200
parents 8f284b0a5a35
children 1bd075bf6f8b
files src/syntax.c src/version.c
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -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;
--- a/src/version.c
+++ b/src/version.c
@@ -778,6 +778,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1595,
+/**/
     1594,
 /**/
     1593,