The way the new hud-performance work does the token splitting should prevent this from happening.
The loop in question now reads like so:
while (*string) { /* strip separators */ string += strspn (string, SEPARATORS);
if (*string) { gint length;
/* consume a token */ length = strcspn (string, SEPARATORS); g_ptr_array_add (array, hud_token_new (string, length)); string += length; } }
so any number of trailing separators should be silently consumed and have no additional effect on the search.
The way the new hud-performance work does the token splitting should prevent this from happening.
The loop in question now reads like so:
while (*string)
{
/* strip separators */
string += strspn (string, SEPARATORS);
if (*string)
{
gint length;
/* consume a token */
g_ptr_ array_add (array, hud_token_new (string, length));
length = strcspn (string, SEPARATORS);
string += length;
}
}
so any number of trailing separators should be silently consumed and have no additional effect on the search.