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:
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user