From 60bfee23fdc0c225d8b08e4e29542aaff97f27f4 Mon Sep 17 00:00:00 2001 From: mecaneer23 Date: Wed, 17 Apr 2024 14:02:14 -0500 Subject: [PATCH] refactor: remove duplicate code in parse_attrs --- src/acurses.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/acurses.py b/src/acurses.py index eebd76b..9615982 100644 --- a/src/acurses.py +++ b/src/acurses.py @@ -105,8 +105,7 @@ def _parse_attrs(self, attrs: int) -> str: background = ansi_code continue if ansi_code // 10 == 3 and background != 0: - output += f"\033[{ansi_code};{background}m" - continue + ansi_code = f"{ansi_code};{background}" output += f"\033[{ansi_code}m" return output