mirror of
https://github.com/Tha14/toxic.git
synced 2025-07-01 16:16:46 +02:00
no longer need this
This commit is contained in:
@ -386,7 +386,7 @@ 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] = '\0';
|
||||
line[ctx->pos+1] = L'\0';
|
||||
wclear(ctx->linewin);
|
||||
wmove(self->window, y2 - CURS_Y_OFFSET, 0);
|
||||
wclrtobot(self->window);
|
||||
@ -409,7 +409,7 @@ static void chat_onKey(ToxWindow *self, Tox *m, wint_t key)
|
||||
else if(!strncmp(line, "/savefile ", strlen("/savefile ")))
|
||||
chat_savefile(self, ctx, m, line + strlen("/savefile "));
|
||||
else
|
||||
execute(ctx->history, self->prompt, m, line, ctx->pos);
|
||||
execute(ctx->history, self->prompt, m, line);
|
||||
} else {
|
||||
/* make sure the string has at least non-space character */
|
||||
if (!string_is_empty(line)) {
|
||||
|
Reference in New Issue
Block a user