<p>In <a href="https://github.com/geany/geany/pull/406#discussion_r52834333">src/symbols.c</a>:</p>
<pre style='color:#555'>> +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();
</pre>
<p>I'd rather pass this as an argument, lowering the environmental factor of this function</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/geany/geany/pull/406/files#r52834333">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJzwR2lbFf1gtKq1mEHz0q49O5fowks5pj6AdgaJpZM4DUzez.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/geany/geany/pull/406/files#r52834333"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>