x += Chunk.paintChunkList(lineInfo.chunks,
gfx,textArea.getHorizontalOffset(),
baseLine,!Debug.DISABLE_GLYPH_VECTOR);
}
Buffer buffer = textArea.getBuffer();
if(!lineInfo.lastSubregion)
{
gfx.setFont(defaultFont);
gfx.setColor(eolMarkerColor);
gfx.drawString(":",Math.max(x,
textArea.getHorizontalOffset()
+ textArea.getDisplayManager().wrapMargin + textArea.charWidth),
baseLine);
x += textArea.charWidth;
}
else if(physicalLine < buffer.getLineCount() - 1
&& buffer.isFoldStart(physicalLine)
&& !textArea.displayManager
.isLineVisible(physicalLine + 1))
{
int level = buffer.getFoldLevel(physicalLine + 1);
if(buffer.getFoldHandler() instanceof IndentFoldHandler)
level = Math.max(1,level / buffer.getIndentSize());
if(level > 3)
level = 0;
SyntaxStyle foldLineStyle = TextAreaPainter.this.foldLineStyle[level];
Font font = foldLineStyle.getFont();