X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/20655a257642e1e200223e1b8e5d8dfe2bf27d5f..2647b10332087c0705b9d8a38c8af473a8a4acba:/terminal.c diff --git a/terminal.c b/terminal.c index 06d6ee6b..59500725 100644 --- a/terminal.c +++ b/terminal.c @@ -336,6 +336,7 @@ Terminal *term_init(Config *mycfg, void *frontend) term->nbeeps = 0; term->lastbeep = FALSE; term->beep_overloaded = FALSE; + term->attr_mask = 0xffffffff; term->resize_fn = NULL; term->resize_ctx = NULL; @@ -3039,7 +3040,8 @@ static void do_paint(Terminal *term, Context ctx, int may_optimise) if ((term->disptext[idx] ^ tattr) & ATTR_WIDE) dirty_line = TRUE; - break_run = (tattr != attr || j - start >= sizeof(ch)); + break_run = (((tattr ^ attr) & term->attr_mask) || + j - start >= sizeof(ch)); /* Special hack for VT100 Linedraw glyphs */ if ((attr & CSET_MASK) == 0x2300 && tchar >= 0xBA