mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 05:21:10 +00:00
Add noattr and use in mode-style to allow whether attributes are ignored
or used to be configured. GitHub issue 4498.
This commit is contained in:
4
style.c
4
style.c
@ -217,7 +217,9 @@ style_parse(struct style *sy, const struct grid_cell *base, const char *in)
|
||||
} else if (strcasecmp(tmp, "none") == 0)
|
||||
sy->gc.attr = 0;
|
||||
else if (end > 2 && strncasecmp(tmp, "no", 2) == 0) {
|
||||
if ((value = attributes_fromstring(tmp + 2)) == -1)
|
||||
if (strcmp(tmp + 2, "attr") == 0)
|
||||
value = 0xffff & ~GRID_ATTR_CHARSET;
|
||||
else if ((value = attributes_fromstring(tmp + 2)) == -1)
|
||||
goto error;
|
||||
sy->gc.attr &= ~value;
|
||||
} else if (end > 6 && strncasecmp(tmp, "width=", 6) == 0) {
|
||||
|
Reference in New Issue
Block a user