0
0
mirror of https://github.com/vim/vim.git synced 2025-10-05 05:34:07 -04:00

patch 8.1.0938: background color is wrong in MS-Windows console

Problem:    Background color is wrong in MS-Windows console when not using VTP.
Solution:   Use g_attrCurrent. (Nobuhiro Takasaki, closes #3987)
This commit is contained in:
Bram Moolenaar
2019-02-17 14:10:56 +01:00
parent f1b57ab2ab
commit 21edde8742
2 changed files with 10 additions and 2 deletions

View File

@@ -6031,6 +6031,9 @@ insert_lines(unsigned cLines)
{ {
fill.Char.AsciiChar = ' '; fill.Char.AsciiChar = ' ';
if (!USE_VTP)
fill.Attributes = g_attrCurrent;
else
fill.Attributes = g_attrDefault; fill.Attributes = g_attrDefault;
set_console_color_rgb(); set_console_color_rgb();
@@ -6085,6 +6088,9 @@ delete_lines(unsigned cLines)
{ {
fill.Char.AsciiChar = ' '; fill.Char.AsciiChar = ' ';
if (!USE_VTP)
fill.Attributes = g_attrCurrent;
else
fill.Attributes = g_attrDefault; fill.Attributes = g_attrDefault;
set_console_color_rgb(); set_console_color_rgb();

View File

@@ -779,6 +779,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
938,
/**/ /**/
937, 937,
/**/ /**/