Mercurial > vim
changeset 14212:2bebc49116fd v8.1.0123
patch 8.1.0123: MS-Windows: colors are wrong after setting 'notgc'
commit https://github.com/vim/vim/commit/b0eb14f9392a8d95045182c4e520530319ce44c2
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jun 28 15:29:52 2018 +0200
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)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 28 Jun 2018 15:30:07 +0200 |
parents | 8abf8fd13476 |
children | 762bd604e3b3 |
files | src/option.c src/version.c |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/option.c +++ b/src/option.c @@ -8819,10 +8819,13 @@ set_bool_option( # endif highlight_gui_started(); # ifdef FEAT_VTP - control_console_color_rgb(); /* reset t_Co */ if (is_term_win32()) + { + control_console_color_rgb(); set_termname(T_NAME); + init_highlight(TRUE, FALSE); + } # endif } #endif