comparison src/option.c @ 14806:7cc2d28778ac v8.1.0415

patch 8.1.0415: not actually using 16 colors with vtp commit https://github.com/vim/vim/commit/d4f73438bb6c88a0d3e315f0eebef30993b5921c Author: Bram Moolenaar <Bram@vim.org> Date: Fri Sep 21 12:24:12 2018 +0200 patch 8.1.0415: not actually using 16 colors with vtp Problem: Not actually using 16 colors with vtp. Solution: Always use 256 colors when vtp is used. (Nobuhiro Takasaki, closes #3432)
author Christian Brabandt <cb@256bit.org>
date Fri, 21 Sep 2018 12:30:06 +0200
parents cca823b02a04
children 10107703b9b2
comparison
equal deleted inserted replaced
14805:c784720ab1c3 14806:7cc2d28778ac
7783 check_redraw(options[opt_idx].flags); 7783 check_redraw(options[opt_idx].flags);
7784 7784
7785 #if defined(FEAT_VTP) && defined(FEAT_TERMGUICOLORS) 7785 #if defined(FEAT_VTP) && defined(FEAT_TERMGUICOLORS)
7786 if (did_swaptcap) 7786 if (did_swaptcap)
7787 { 7787 {
7788 if (t_colors < 256)
7789 p_tgc = 0;
7790 set_termname((char_u *)"win32"); 7788 set_termname((char_u *)"win32");
7791 init_highlight(TRUE, FALSE); 7789 init_highlight(TRUE, FALSE);
7792 } 7790 }
7793 #endif 7791 #endif
7794 7792