//System.err.println(">>> calculateLineCount: " + startOffset + "-" + p1);
for (int p0=startOffset; p0<p1; ) {
//System.err.println("... ... " + p0 + ", " + p1);
nlines += 1;
TokenSubList subList = TokenUtils.getSubTokenList(tokenList, p0,
WrappedSyntaxView.this, textArea, x0, lineCountTempToken);
x0 = subList!=null ? subList.x : x0;
tokenList = subList!=null ? subList.tokenList : null;
int p = calculateBreakPosition(p0, tokenList, x0);