1
0
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:
Jfreegman
2013-10-20 01:27:45 -04:00
parent 4ad6853e2e
commit 957b335559
5 changed files with 6 additions and 9 deletions

View File

@ -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)) {