mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
parent
8137efbfa3
commit
7af6bad5e6
@ -242,15 +242,15 @@ parse_args_with_freetext(const char * const inp, int min, int max)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (!in_freetext && curr_uni == ' ') {
|
if (in_freetext) {
|
||||||
|
token_size += g_unichar_to_utf8(curr_uni, NULL);
|
||||||
|
} else if (curr_uni == ' ') {
|
||||||
tokens = g_slist_append(tokens, g_strndup(token_start,
|
tokens = g_slist_append(tokens, g_strndup(token_start,
|
||||||
token_size));
|
token_size));
|
||||||
token_size = 0;
|
token_size = 0;
|
||||||
in_token = FALSE;
|
in_token = FALSE;
|
||||||
} else {
|
} else if (curr_uni != '"') {
|
||||||
if (curr_uni != '"') {
|
token_size += g_unichar_to_utf8(curr_uni, NULL);
|
||||||
token_size += g_unichar_to_utf8(curr_uni, NULL);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user