1
0
forked from aniani/vim

patch 8.2.0848: MS-Windows: the Windows terminal code has some flaws

Problem:    MS-Windows: the Windows terminal code has some flaws.
Solution:   Do not redraw the right edge of the screen.  Remove the background
            color trick.  Flush the screen output buffer often.  (Nobuhiro
            Takasaki, #5546)
This commit is contained in:
Bram Moolenaar
2020-05-30 17:49:25 +02:00
parent 367d59e6ba
commit 06b7b58455
4 changed files with 108 additions and 12 deletions

View File

@@ -2956,7 +2956,16 @@ term_rgb_color(char_u *s, guicolor_T rgb)
vim_snprintf(buf, MAX_COLOR_STR_LEN,
(char *)s, RED(rgb), GREEN(rgb), BLUE(rgb));
OUT_STR(buf);
#ifdef FEAT_VTP
if (use_wt())
{
out_flush();
buf[1] = '[';
vtp_printf(buf);
}
else
#endif
OUT_STR(buf);
}
void