Mercurial > vim
comparison src/syntax.c @ 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 | ce04ebdf26b8 |
children | 079ce74ecaa5 |
comparison
equal
deleted
inserted
replaced
17191:8f284b0a5a35 | 17192:b8fafffb537b |
---|---|
9552 at_en.ae_attr = sgp->sg_cterm; | 9552 at_en.ae_attr = sgp->sg_cterm; |
9553 at_en.ae_u.cterm.fg_color = sgp->sg_cterm_fg; | 9553 at_en.ae_u.cterm.fg_color = sgp->sg_cterm_fg; |
9554 at_en.ae_u.cterm.bg_color = sgp->sg_cterm_bg; | 9554 at_en.ae_u.cterm.bg_color = sgp->sg_cterm_bg; |
9555 # ifdef FEAT_TERMGUICOLORS | 9555 # ifdef FEAT_TERMGUICOLORS |
9556 # ifdef MSWIN | 9556 # ifdef MSWIN |
9557 # ifdef VIMDLL | |
9558 // Only when not using the GUI. | |
9559 if (!gui.in_use && !gui.starting) | |
9560 # endif | |
9557 { | 9561 { |
9558 int id; | 9562 int id; |
9559 guicolor_T fg, bg; | 9563 guicolor_T fg, bg; |
9560 | 9564 |
9561 id = syn_name2id((char_u *)"Normal"); | 9565 id = syn_name2id((char_u *)"Normal"); |