#1455 Folding Problems on Folded Lines (Confirmed in C++ and HTML Lexer)

Bug
closed-fixed
6
2014-07-17
2013-03-17
Stewart
No

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

Discussion

  • Neil Hodgson

    Neil Hodgson - 2013-03-17
    • labels: Folding Problems --> Folding Problems, scintilla, folding
    • status: open --> open-accepted
    • assigned_to: Neil Hodgson
    • priority: 5 --> 6
     
  • Neil Hodgson

    Neil Hodgson - 2013-03-18

    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]

  • Neil Hodgson

    Neil Hodgson - 2013-03-18
    • status: open-accepted --> open-fixed
     
  • Neil Hodgson

    Neil Hodgson - 2013-04-01
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.