From 65045941277df247e089789e50aa29862d4563bc Mon Sep 17 00:00:00 2001 From: Rudy Dellomas III Date: Fri, 19 Apr 2024 21:54:42 +1000 Subject: Disable reverse with "notreverse" in style definitions --- ui-terminal.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ui-terminal.c') diff --git a/ui-terminal.c b/ui-terminal.c index cf34378..dd04f76 100644 --- a/ui-terminal.c +++ b/ui-terminal.c @@ -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")) { -- cgit v1.2.3