Return a format->split even at the end of the string

weechat-hashes
Curtis McEnroe 2018-09-13 15:11:05 -04:00
parent 8a8eab89ff
commit 311795bf41
No known key found for this signature in database
GPG Key ID: CEA2F97ADCFCD77C
1 changed files with 7 additions and 1 deletions

View File

@ -66,7 +66,13 @@ static const wchar_t Stops[] = {
bool formatParse(struct Format *format, const wchar_t *split) {
format->str += format->len;
if (!format->str[0]) return false;
if (!format->str[0]) {
if (split == format->str && !format->split) {
format->split = true;
return true;
}
return false;
}
const wchar_t *init = format->str;
switch (format->str[0]) {