1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-07-01 15:57:45 +02:00

fix segfault

This commit is contained in:
Jfreegman 2014-02-23 05:15:48 -05:00
parent 9f309ecb96
commit 5b9d3f6f62

View File

@ -497,11 +497,11 @@ static void chat_onKey(ToxWindow *self, Tox *m, wint_t key)
free(statusbar);
} else {
reset_buf(ctx->line, &ctx->pos, &ctx->len);
if (ctx->len <= 0 && ctx->self_is_typing)
set_typingstatus(self, m, false);
}
}
if (ctx->len <= 0 && ctx->self_is_typing)
set_typingstatus(self, m, false);
}
static void chat_onDraw(ToxWindow *self, Tox *m)