Skip to content

Commit

Permalink
Disable reverse with "notreverse" in style definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
dther authored and rnpnr committed Apr 21, 2024
1 parent f01cf2c commit 6504594
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ui-terminal.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ static bool ui_style_define(UiWin *w, int id, const char *style) {
for (*value++ = '\0'; *value == ' '; value++);
if (!strcasecmp(option, "reverse")) {
cell_style.attr |= CELL_ATTR_REVERSE;
} else if (!strcasecmp(option, "notreverse")) {
cell_style.attr &= CELL_ATTR_REVERSE;
} else if (!strcasecmp(option, "bold")) {
cell_style.attr |= CELL_ATTR_BOLD;
} else if (!strcasecmp(option, "notbold")) {
Expand Down

0 comments on commit 6504594

Please sign in to comment.