1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-01 16:16:46 +02:00
This commit is contained in:
Jfreegman
2013-11-28 20:23:37 -05:00
parent a98ec22fd6
commit d29e5dbe48
3 changed files with 4 additions and 3 deletions

View File

@ -288,10 +288,11 @@ static void chat_onKey(ToxWindow *self, Tox *m, wint_t key)
} else
/* Add printable chars to buffer and print on input space */
#if HAVE_WIDECHAR
if (iswprint(key)) {
if (iswprint(key))
#else
if (isprint(key)) {
if (isprint(key))
#endif
{
if (ctx->pos < (MAX_STR_SIZE-1)) {
mvwaddstr(self->window, y, x, wc_to_char(key));
ctx->line[ctx->pos++] = key;