1
0
forked from aniani/vim

patch 9.0.1232: ColorTable saving and restoring does not work properly

Problem:    ColorTable saving and restoring does not work properly.
Solution:   Restore ColorTable[16] usage. (Christopher Plewright,
            closes #11836)
This commit is contained in:
Christopher Plewright
2023-01-22 18:58:30 +00:00
committed by Bram Moolenaar
parent 3770f4c9cd
commit d343c60df4
4 changed files with 49 additions and 65 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 (has_vtp_working())
if (use_wt())
{
out_flush();
buf[1] = '[';