1
0
forked from aniani/vim

patch 9.0.1235: MS-Windows console: not flushing termguicolors

Problem:    MS-Windows console: not flushing termguicolors.
Solution:   Flush termguicolors. (Christopher Plewright, closes #11871)
This commit is contained in:
Christopher Plewright
2023-01-23 12:33:23 +00:00
committed by Bram Moolenaar
parent ebfec1c531
commit dc7179f9a4
4 changed files with 19 additions and 14 deletions

View File

@@ -3222,7 +3222,7 @@ term_rgb_color(char_u *s, guicolor_T rgb)
vim_snprintf(buf, MAX_COLOR_STR_LEN,
(char *)s, RED(rgb), GREEN(rgb), BLUE(rgb));
#ifdef FEAT_VTP
if (use_wt())
if (use_vtp() && (p_tgc || t_colors >= 256))
{
out_flush();
buf[1] = '[';