Mercurial > vim
diff src/term.c @ 20589:ecaceb5c5644 v8.2.0848
patch 8.2.0848: MS-Windows: the Windows terminal code has some flaws
Commit: https://github.com/vim/vim/commit/06b7b58455f9c09be3d1c36d174ffbfdf4efcd79
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat May 30 17:49:25 2020 +0200
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 30 May 2020 18:00:04 +0200 |
parents | bed30e6b5a09 |
children | 4411c2b96af9 |
line wrap: on
line diff
--- 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