Since bug #1799 was fixed, ctrl-click doesn't always work as expected
Have confirmed this by removing the commits for #1799
Unfortunately I don't know how to fix this. Hopefully this information helps.
Have attached a test file and also a screenshot of the problem
The problem appears to be that the text offscreen hadn't been lexed or had fold structure extracted (or this information was stale) which then caused styling which led to recursive execution of folding code. Avoided by finding last child text, and thus styling, before folding the line.
Fommitted as [4ce6fa] for SciTE and as [91d90d] for the similar code in Scintilla.
Related
Commit: [4ce6fa]
Commit: [91d90d]