1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-04 19:56:45 +02:00

close file transfers on exit & fixes

This commit is contained in:
Jfreegman
2013-11-28 22:28:40 -05:00
parent 8cf3043dd3
commit 04b394d6dd
4 changed files with 25 additions and 10 deletions

View File

@ -239,10 +239,11 @@ static void groupchat_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;