From 874f3e07641b4d941c8b01f3180228311700ef52 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Fri, 29 Oct 2021 07:51:29 +1100 Subject: [PATCH] Fix terminal underline color not being properly reset --- src/terminal_ui.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/terminal_ui.cc b/src/terminal_ui.cc index 0cc4a311..faceb16e 100644 --- a/src/terminal_ui.cc +++ b/src/terminal_ui.cc @@ -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)