summaryrefslogtreecommitdiff
path: root/src/term.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-05-30 17:49:25 +0200
committerBram Moolenaar <Bram@vim.org>2020-05-30 17:49:25 +0200
commit06b7b58455f9c09be3d1c36d174ffbfdf4efcd79 (patch)
tree9c5cdb61f44c35413acc043f9a118fbbb41bd743 /src/term.c
parent367d59e6ba65cf554d167933775fa17e40dcc6a7 (diff)
downloadvim-git-06b7b58455f9c09be3d1c36d174ffbfdf4efcd79.tar.gz
patch 8.2.0848: MS-Windows: the Windows terminal code has some flawsv8.2.0848
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)
Diffstat (limited to 'src/term.c')
-rw-r--r--src/term.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/term.c b/src/term.c
index 588058941..d774ebc98 100644
--- a/src/term.c
+++ b/src/term.c
@@ -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