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)
diff --git a/src/term.c b/src/term.c
index 5880589..d774ebc 100644
--- a/src/term.c
+++ b/src/term.c
@@ -2956,7 +2956,16 @@
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