Hello,

I've got a problem with word wrapping. For some unknown reason, when I disable word wrapping in combination to calling ClearDocumentStyle, the number of lines considered as viewed (in the ContractionState::linesInDisplay != ContractionState::linesInDoc) stays to the old value... thus crashing Scintilla when I then try to scroll beyond the end of the file :( it is seems that the current code counts on the ContractionState not to be empty to so that 'MakeValid' counts the right number of displayed lines, however ClearDocumentStyle calls 'ShowAll' which cleans the array and MakeValid is never called :(
Should "ShowAll" set linesInDisplay == linesInDoc when wrapping is disabled?
Or is there a way to invalidate the linesInDisplay count?

Regards
Armel


_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to