Neil Hodgson:
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.
I was thinking of folding because I noticed that the call to SCI_GETLASTCHILD in the SciTE brace matching code also triggers pdoc->EnsureStyledTo(), but then I realized that this is used only in a special case with Python. What I've tried, moreover, is calling SCI_GETSTYLEAT for the brace in hope that this might somehow trigger the styling, as SciTE seems to do that through a WindowAccessor object (to check whether or not the brace is part of a multibyte character - can this happen, at all?). Anyway, Neil, thank you very much for your investigations, so far.
Try commenting out all your SCN_* handling code except for the brace matcher.
Ok, but without success, unfortunately. I found out that the problem only occurs if there's some text between the if() statement and the line commented with # (no matter of what style, also whitespace or newlines), so my initial example should be modified like this: <?php if($expr == true) # } } ?> The new opening brace should be inserted on line 3. Funnily enough, it works fine when inserting the brace on line 4 or 5! But still, I'm not able to produce anything similar with SciTE. --Florian _______________________________________________ Scintilla-interest mailing list [email protected] http://mailman.lyra.org/mailman/listinfo/scintilla-interest
