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:
nicm
2025-06-20 14:54:33 +00:00
parent 522652913f
commit ad3e6ff054
4 changed files with 7 additions and 4 deletions

View File

@ -577,8 +577,7 @@ screen_select_cell(struct screen *s, struct grid_cell *dst,
if (COLOUR_DEFAULT(dst->bg))
dst->bg = src->bg;
utf8_copy(&dst->data, &src->data);
dst->attr = dst->attr & ~GRID_ATTR_CHARSET;
dst->attr |= src->attr & GRID_ATTR_CHARSET;
dst->attr = src->attr;
dst->flags = src->flags;
}