X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/7c66d7d9a4f1a148751d27e2f2a1757a9caa44a1..fa76f4a34e617264aec6121afb22bf77c1521610:/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