Possible bug related to folding or my mystake (Fixed)

Aug 11, 2012 at 11:40 PM
Edited Aug 13, 2012 at 5:18 PM

I was trying to start all the folding boxes like minus, but it looks like there's something wrong, as it only do half of the work:

 

'Note: SyntaxHandle => ScintillaNet.Scintilla control
For Each Line As ScintillaNet.Line In SyntaxHandle.Lines
	If Line.IsFoldPoint AndAlso Line.FoldExpanded Then Line.ToggleFoldExpanded()
Next

 

This is what I get when this code runs: link

This is what I expect when this code runs: link

So now i don't know if I did something wrong or if this is a Scintilla bug.


PS: I try to achieve this by using diferent methods, but it looks like that ScintillaNet does not recognize this lines as FoldPoint.

 

Edit:

I don't know why, but without any changes, this code is not working as expected.