This project is read-only.

Possible bug related to folding or my mystake (Fixed)

Aug 12, 2012 at 12:40 AM
Edited Aug 13, 2012 at 6: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()


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.



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