1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-01 16:16:46 +02:00

fix a couple bugs

This commit is contained in:
Jfreegman
2013-12-18 20:18:02 -05:00
parent d04f5fa102
commit feefecb2ac
4 changed files with 5 additions and 5 deletions

View File

@ -396,7 +396,7 @@ static void chat_onKey(ToxWindow *self, Tox *m, wint_t key)
mv_curs_end(self->window, ctx->len, y2, x2);
}
else if (key == '\t') { /* TAB key: command */
else if (key == '\t') { /* TAB key: completes command */
if (ctx->len > 1 && ctx->line[0] == '/') {
int diff = complete_line(ctx->line, &ctx->pos, &ctx->len, chat_cmd_list, AC_NUM_CHAT_COMMANDS,
MAX_CMDNAME_SIZE);