Davide Vecchi: > To summarize the problem, i paste 3 chars (say "ABC") into an > empty window, the app styles the 3 chars on SCN_UPDATEUI, > then i move the caret to the beginning of line, i type a char or > paste a string (say "xyz"), and then the last char of the preexisting > ones (the "C") gets its style changed to the default style. > > I'm using no lexer, ...
An earlier message indicated that you use SCLEX_NULL. SCLEX_NULL tries to maintain the style information as all 0s. To do this without performing lots of unnecessary writing it just updates the last style byte so that the style cursor is moved to the end of the document. If you want to perform your own styling then use SCLEX_CONTAINER. If you don't want to perform any styling within the SCN_STYLENEEDED notification, you should still move the styling cursor by calling SCI_STARTSTYLING with the notification position (or the end of the document) so that Scintilla will believe that styling has been performed up to that point and not continue asking for more styling. Neil _______________________________________________ Scintilla-interest mailing list [email protected] http://mailman.lyra.org/mailman/listinfo/scintilla-interest
