vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

commit c12900490e7fe72888278b786f14e0eaa9447724
parent 3e84c4b711bba949ab060cb0afd26b9b36e3a313
Author: Rudy Dellomas III <dther@dther.xyz>
Date:   Fri, 19 Apr 2024 21:54:42 +1000

Disable reverse with "notreverse" in style definitions

Diffstat:
Mui-terminal.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git 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")) {