@@ -670,13 +670,28 @@ static void fill_find_tags_array(GPtrArray *dst, const GPtrArray *src,
if (!src || !dst || !name || !*name) return;
- //first, check if the given scope matches any tags. if not, just ignore scope.
- gboolean ignore_scope = TRUE;
- tag = tm_tags_find(src, name, FALSE, &num);
- for (i = 0; scope != NULL && i < num; ++i)
- {
if ((type & (*tag)->type) &&
tm_tag_langs_compatible(lang, (*tag)->lang)
&& g_strcmp0((*tag)->scope, scope) == 0)
{
ignore_scope = FALSE;
break;
}
tag++;
- }
Might be a good idea to clean this part up, I have no ideas on how to though