1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-04 09:36:45 +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

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