[Github-comments] [geany/geany] New tagmanager query module (#1187)

Thomas Martitz notifications at xxxxx
Thu Aug 25 11:20:45 UTC 2016


> +
> +	foreach_ptr_array(s, i, q->names)
> +	{
> +		TMTag **tags;
> +		if (q->data_sources & TM_QUERY_SOURCE_GLOBAL_TAGS)
> +		{
> +			tags = tm_tags_find(q->workspace->global_tags, s->str, s->len, &ntags);
> +			if (ntags)
> +			{
> +				g_ptr_array_set_size(ret, ret->len + ntags);
> +				memcpy(&ret->pdata[ret->len], *tags, ntags * sizeof(gpointer));
> +			}
> +		}
> +		if (q->data_sources & TM_QUERY_SOURCE_SESSION_TAGS)
> +		{
> +			tags = tm_tags_find(q->workspace->global_tags, s->str, s->len, &ntags);

Indeed, copy&paste error. Was correct in the initial commit.

-- 
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/1187/files/2805e1f1118960cdf3a547af35c6810168431876#r76224959
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20160825/a2310515/attachment.html>


More information about the Github-comments mailing list