that's actually your problem: Scintilla expects a lexer
to restore correct styles after the last updated position
each time such an update happens. and if there is no
lexer, then it expects to have empty styles.
Ha! That's what i was missing. Thanks, i guess this solves my problem.
Just to take this opportunity to know more about Scintilla, does that
explaination also cover the fact that it's always only one char which
loses its style, regardless of how many chars i paste at the beginning of
the line ?
to be honest I am not able to answer that... when text is inserted the style
bytes of text behind the insertion are copied as well but I imagine that
something goes wrong at the limits of the algo (i.e. the end of file), or
maybe your styling code still acts partially after typing some texts and
trashes this last character, you could set a breakpoint into
CellBuffer::SetStyleAt / SetStyleFor and see who is trashing the style
Armel
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest