Hi,
I originally thought this problem was on my end but after some testing I found the problem also exists in Scite although to a lesser extent. This was confirmed on Scite 3.2.5 using the WScite download containing the compiled sciLexer.dll.
If you enter the following code in C++ as an example:
if ($x == 3){
aaa
}
bbvbb
And then you collapse the line 0 and place the cursor at the end of that line and then press enter it doesn't expand the folded content.
What is unusual is that this text here works just fine:
if ($x == 3){
aaa
}
bbvbb
The only difference being that I removed the additional line before "aaa".
On my own application with or without the additional line the problems occurs but it appears to a lesser extent the problem exists in Scite too which leads me to believe it is a minor glitch in Scintilla.
Thanks,
Stewart
Fix committed as [e33e4b].
The problem was caused by a fix for blank lines which were treated as weakly dependent on previous non-blank lines. Trying to show the folded blank line back-tracked to the previous non-blank (if...) line which had no parent to unfold.
Related
Commit: [e33e4b]