From 1683b82a9538e636d81e169a13985b98e92676eb Mon Sep 17 00:00:00 2001 From: Mark Nudelman Date: Wed, 19 Oct 2022 16:32:00 -0700 Subject: [PATCH 26/48] "ESC[m" should clear attributes as well as colors. --- lesstest/lt_screen.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lesstest/lt_screen.c b/lesstest/lt_screen.c index 6cfa348..0e5a28a 100644 --- a/lesstest/lt_screen.c +++ b/lesstest/lt_screen.c @@ -232,6 +232,7 @@ static int screen_set_color(int color) { default: if (color < 0) { screen.curr_fg_color = screen.curr_bg_color = NULL_COLOR; + screen.curr_attr = 0; ret = 1; } else if ((color >= 30 && color <= 37) || (color >= 90 && color <= 97)) { screen.curr_fg_color = color; -- 2.27.0