boolean inserting = delta > 0;
	void linesChanged(int startLine, int delta) {		boolean inserting = delta > 0;				if (delta == 0) {			return;		}		if (inserting) {			// shift the lines down to make room for new lines			expandLines(delta);			for (int i = lineCount - 1; i >= startLine; i--) {				lineWidth[i + delta] = lineWidth[i];			}			// reset the new lines			for (int i = startLine + 1; i <= startLine + delta && i < lineWidth.length; i++) {				lineWidth[i] = -1;			}			// have new lines been inserted above the longest line?			if (maxWidthLineIndex >= startLine) {				maxWidthLineIndex += delta;			}		} 		else {			// shift up the lines			for (int i = startLine - delta; i < lineCount; i++) {				lineWidth[i+delta] = lineWidth[i];			}			// has the longest line been removed?			if (maxWidthLineIndex > startLine && maxWidthLineIndex <= startLine - delta) {				maxWidth = 0;				maxWidthLineIndex = -1;			}			else			if (maxWidthLineIndex >= startLine - delta) {				maxWidthLineIndex += delta;			}		}		lineCount += delta;	}