Commit 544c7efa authored by Hisham Muhammad's avatar Hisham Muhammad
Browse files

Omit non-printable characters with widechar curses.

Closes PR #111.
parent c7387fac
......@@ -98,7 +98,7 @@ static inline void RichString_writeFrom(RichString* this, int attrs, const char*
for (int i = from, j = 0; i < newLen; i++, j++) {
CharType* c = &(this->chptr[i]);
c->attr = attrs;
c->chars[0] = data[j];
c->chars[0] = (iswprint(data[j]) ? data[j] : '?');
c->chars[1] = 0;
}
this->chptr[newLen].chars[0] = 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment