for UCSWIDE. Thanks Jacob, for catching this with valgrind.
git-svn-id: http://svn.tartarus.org/sgt/putty@4338
cda61777-01e9-0310-a592-
d414129be87e
}
tattr |= (tchar & CSET_MASK);
tchar &= CHAR_MASK;
- if ((d[1] & (CHAR_MASK | CSET_MASK)) == UCSWIDE)
- tattr |= ATTR_WIDE;
+ if (j < term->cols-1 &&
+ (d[1] & (CHAR_MASK | CSET_MASK)) == UCSWIDE)
+ tattr |= ATTR_WIDE;
/* Video reversing things */
if (term->selstate == DRAGGING || term->selstate == SELECTED) {