summaryrefslogtreecommitdiff
path: root/src/option.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-06-28 15:29:52 +0200
committerBram Moolenaar <Bram@vim.org>2018-06-28 15:29:52 +0200
commitb0eb14f9392a8d95045182c4e520530319ce44c2 (patch)
treed944e7b299c7758f2cc88f1bbc4b4321826aafde /src/option.c
parent0c183198727b80fd7e52fb29cc1dcd08d79a281c (diff)
downloadvim-git-b0eb14f9392a8d95045182c4e520530319ce44c2.tar.gz
patch 8.1.0123: MS-Windows: colors are wrong after setting 'notgc'v8.1.0123
Problem: MS-Windows: colors are wrong after setting 'notgc'. Solution: Only call control_console_color_rgb() for the win32 terminal. (Nobuhiro Takasaki, closes #3107)
Diffstat (limited to 'src/option.c')
-rw-r--r--src/option.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/option.c b/src/option.c
index 1ba8a8c2e..4fdfe1000 100644
--- 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