@b4n commented on this pull request.
{
+ GeanyDocument *doc = document_get_current(); + + if (plugin_extension_goto_provided(doc, NULL)) + return plugin_extension_goto_perform(doc, pos, definition);
Ah, right, it calls `get_current_word_or_sel()`, and is indeed different if there's a selection. I really don't see why we handle selection in this instance, but maybe there's a use case? I'll try and think about it, but it seems odd (unless it's useful for some specific languages where we might get wordchars wrong?).