Florian Balmer:
Yes, it does. However, Notepad2 doesn't use code folding, so maybe the styling is more up-to-date in SciTE due to some additional calls concerning folding? Or the container-side handling of the styling?
I turned off folding without any change. Also stopped the caret blinking in case it was an extra paint. I can't see any way for endStyled to not include all the visible text when SCN_UPDATEUI occurs. There is an optimization that prevents redraw of lines that don't need it but that doesn't stop them being styled.
So I found this workaround: if SCI_GETENDSTYLED < SCI_GETLENGTH, I'm just calling SCI_COLOURISE, and everything works fine! In fact this is necessary after each keystroke, but according to the documentation (SCN_CHARADDED: "... This notification is sent before the character has been styled so processing that depends on styling should instead be performed in the SCN_UPDATEUI notification.") I was assuming the document to be fully styled when SCN_UPDATEUI is received.
Yes, because it is called after pdoc->EnsureStyledTo(endPosPaint). Try commenting out all your SCN_* handling code except for the brace matcher. Neil _______________________________________________ Scintilla-interest mailing list [email protected] http://mailman.lyra.org/mailman/listinfo/scintilla-interest
