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

No longer require quotes to enclose paths

This commit is contained in:
jfreegman
2018-10-08 00:47:51 -04:00
parent b6c746b5f5
commit 56e03a3f8b
12 changed files with 111 additions and 97 deletions

View File

@ -507,12 +507,12 @@ static void groupchat_onKey(ToxWindow *self, Tox *m, wint_t key, bool ltr)
if (ctx->line[0] != L'/' || wcscmp(ctx->line, L"/me") == 0) {
diff = complete_line(self, groupchats[self->num].name_list, groupchats[self->num].num_peers,
TOX_MAX_NAME_LENGTH);
} else if (wcsncmp(ctx->line, L"/avatar \"", wcslen(L"/avatar \"")) == 0) {
} else if (wcsncmp(ctx->line, L"/avatar ", wcslen(L"/avatar ")) == 0) {
diff = dir_match(self, m, ctx->line, L"/avatar");
}
#ifdef PYTHON
else if (wcsncmp(ctx->line, L"/run \"", wcslen(L"/run \"")) == 0) {
else if (wcsncmp(ctx->line, L"/run \"", wcslen(L"/run ")) == 0) {
diff = dir_match(self, m, ctx->line, L"/run");
}