mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-26 09:53:26 +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 */
|
||||
else if (key == '\n') {
|
||||
uint8_t *line = wcs_to_char(ctx->line);
|
||||
line[ctx->pos+1] = L'\0';
|
||||
wclear(ctx->linewin);
|
||||
wmove(self->window, y2 - CURS_Y_OFFSET, 0);
|
||||
wclrtobot(self->window);
|
||||
|
Loading…
Reference in New Issue
Block a user