Fix terminal underline color not being properly reset

This commit is contained in:
Maxime Coste 2021-10-29 07:51:29 +11:00
parent da10ce817e
commit 874f3e0764

View File

@ -247,7 +247,7 @@ void TerminalUI::Screen::set_face(const Face& face, Writer& writer)
if (face.attributes & (Attribute)(1 << i))
format_with(writer, ";{}", attr_table[i]);
}
m_active_face = Face{{}, {}, face.attributes};
m_active_face.fg = m_active_face.bg = Color::Default;
join = true;
}
if (m_active_face.fg != face.fg)