Omit non-printable characters with widechar curses.

Closes PR #111.
This commit is contained in:
Hisham Muhammad 2015-08-20 02:07:24 -03:00
parent c7387fac15
commit 544c7efa6b
1 changed files with 1 additions and 1 deletions

View File

@ -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;