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:
@@ -6031,7 +6031,10 @@ insert_lines(unsigned cLines)
|
||||
|
||||
{
|
||||
fill.Char.AsciiChar = ' ';
|
||||
fill.Attributes = g_attrDefault;
|
||||
if (!USE_VTP)
|
||||
fill.Attributes = g_attrCurrent;
|
||||
else
|
||||
fill.Attributes = g_attrDefault;
|
||||
|
||||
set_console_color_rgb();
|
||||
|
||||
@@ -6085,7 +6088,10 @@ delete_lines(unsigned cLines)
|
||||
|
||||
{
|
||||
fill.Char.AsciiChar = ' ';
|
||||
fill.Attributes = g_attrDefault;
|
||||
if (!USE_VTP)
|
||||
fill.Attributes = g_attrCurrent;
|
||||
else
|
||||
fill.Attributes = g_attrDefault;
|
||||
|
||||
set_console_color_rgb();
|
||||
|
||||
|
Reference in New Issue
Block a user