I invoked both goto declaration and goto definition in both .hpp and .cpp, always got .hpp in the list.

But you invoked it on the line where the symbol was defined already, so it swapped to the other search. If you invoked it on the call of that function, it would behave the way you expected.

This behavior isn't anything new and dates back to c61a189

The current "source of the problem" looks this way:

https://github.com/geany/geany/blob/c46ffb0dcdf50760b362c076922bdc747be24937/src/symbols.c#L1697-L1699

I kind of like how it behaves as when you already are on the definition, you don't really need to get to the definition again but rather to the declaration. And as @kugel-, I also use the Ctrl+click version of this feature.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <geany/geany/issues/3585/1755122124@github.com>