Ted2Go icon indicating copy to clipboard operation
Ted2Go copied to clipboard

Folding bug whith last "End"

Open abakobo opened this issue 7 years ago • 2 comments

I can't unfold the Class of the following code. Using the cross won't work, "view>fold>unfold all" will work. If I add an empty line at the end of the file then it works OK. This happens on larger files too (with no empty lines after the last "End").

Class Foo
 Field fooField:Int
 '...
End

abakobo avatar Dec 18 '18 10:12 abakobo

Current folding realization is hard a lot, and I think we need to rewrite CodeTextView to achieve better result. There is no beginning In your sample code, like Class A and so on, looks like it was eaten by code prefix ```.

engor avatar Dec 18 '18 14:12 engor

No worries if it's hard... I can unfoldAll and add an empty line at the end of the file anyway, so it's totally usable! (modified the example code above)

Thx

abakobo avatar Dec 18 '18 14:12 abakobo