1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-04 13:26:45 +02:00

a few fixes, and make tab completion case insensitive

This commit is contained in:
Jfreegman
2013-12-08 01:07:22 -05:00
parent 4c27df32b0
commit b8b032e441
2 changed files with 11 additions and 9 deletions

View File

@ -309,7 +309,7 @@ static void groupchat_onKey(ToxWindow *self, Tox *m, wint_t key)
}
else if (key == '\t') { /* TAB key: completes peer name */
if (ctx->len >= 2) {
if (ctx->len > 0) {
int diff = complete_line(ctx->line, &ctx->pos, &ctx->len, groupchats[self->num].peer_names,
groupchats[self->num].num_peers, TOX_MAX_NAME_LENGTH);