> @@ -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

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/1176/files/46b93e8fcbf4a450d3fda01ff8c820c97fa17eac#r74577291

Reply via email to