In src/symbols.c:

> +static gint compare_tags(gconstpointer ptr1, gconstpointer ptr2)
> +{
> +	gint res;
> +	TMTag *t1 = *((TMTag **) ptr1);
> +	TMTag *t2 = *((TMTag **) ptr2);
> +
> +	res = g_strcmp0(t1->file->short_name, t2->file->short_name);
> +	if (res != 0)
> +		return res;
> +	return t1->line - t2->line;
> +}
> +
> +
> +static TMTag *find_best_goto_tag(GPtrArray *tags)
> +{
> +	GeanyDocument *doc = document_get_current();

I'd rather pass this as an argument, lowering the environmental factor of this function


Reply to this email directly or view it on GitHub.