mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-26 11:43:27 +01:00
fixed bug that was causing random crashes
This commit is contained in:
parent
957b335559
commit
77de8dd116
@ -386,7 +386,6 @@ static void chat_onKey(ToxWindow *self, Tox *m, wint_t key)
|
|||||||
/* RETURN key: Execute command or print line */
|
/* RETURN key: Execute command or print line */
|
||||||
else if (key == '\n') {
|
else if (key == '\n') {
|
||||||
uint8_t *line = wcs_to_char(ctx->line);
|
uint8_t *line = wcs_to_char(ctx->line);
|
||||||
line[ctx->pos+1] = L'\0';
|
|
||||||
wclear(ctx->linewin);
|
wclear(ctx->linewin);
|
||||||
wmove(self->window, y2 - CURS_Y_OFFSET, 0);
|
wmove(self->window, y2 - CURS_Y_OFFSET, 0);
|
||||||
wclrtobot(self->window);
|
wclrtobot(self->window);
|
||||||
|
Loading…
Reference in New Issue
Block a user