Skip to content

Commit

Permalink
refactor: remove duplicate code in parse_attrs
Browse files Browse the repository at this point in the history
  • Loading branch information
mecaneer23 committed Apr 17, 2024
1 parent d3734ad commit 60bfee2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/acurses.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 60bfee2

Please sign in to comment.