Fix up missing bits.

This commit is contained in:
Nicholas Marriott
2012-09-25 08:54:01 +01:00
parent 149f5bac05
commit ce0b285aad
2 changed files with 10 additions and 4 deletions

View File

@ -210,8 +210,12 @@ screen_write_vnputs(struct screen_write_ctx *ctx, ssize_t maxlen,
if (maxlen > 0 && size + 1 > (size_t) maxlen)
break;
size++;
screen_write_putc(ctx, gc, *ptr);
if (*ptr == '\001')
gc->attr ^= GRID_ATTR_CHARSET;
else {
size++;
screen_write_putc(ctx, gc, *ptr);
}
ptr++;
}
}