With recent changes to folding, there was a noticeable problem with
the HTML lexer which may also occur with other lexers. When a fold
point is noticed by the lexer, it calls SetLevel which notifies the
container which checks to see if a contracted fold was removed (as
well as other conditions), in which case it needs to show the lines.
To discover which lines need to be shown, SCI_GETLASTCHILD is called
which looks at further lines and to make sure it is seeing correct
fold level information, styles them if they haven't been styled yet,
which they don't appear to be as the lexer which started this process
is only up to the first line of the fold group. As the subsequent
lines should have had correct fold level information in respect to the
previous state of the header line the extra styling is not required
and may instead cause errors. Therefore, the styling code now checks
whether it is being called reentrantly and returns if it is.

   Available from CVS and from
http://scintilla.sourceforge.net/scite.zip Source
http://scintilla.sourceforge.net/wscite.zip Windows executable

   Neil

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

Reply via email to