Since the Scintilla C++ lexer started to fold on `()` [1], the code looking up the current scope is confused whenever the function signature spans multiple lines. Fix this by resolving matching parentheses on the candidate line before checking the fold level that follows actually contains the current line.
Fixes #1279.
[1] https://sourceforge.net/p/scintilla/feature-requests/1138/ imported in 24f91981c057a7e212c09da66fb974c3ccc85bd6 You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany/pull/1280
-- Commit Summary --
* Fix the current scope shown in the statusbar
-- File Changes --
M src/symbols.c (36)
-- Patch Links --
https://github.com/geany/geany/pull/1280.patch https://github.com/geany/geany/pull/1280.diff