caretAlignment = PREVIOUS_OFFSET_TRAILING;
void doSelectionCursorNext() {	int caretLine = getCaretLine();	int lineOffset = content.getOffsetAtLine(caretLine);	int offsetInLine = caretOffset - lineOffset;	advancing = true;	if (wordWrap) {		TextLayout layout = renderer.getTextLayout(caretLine);		int index = layout.getLineIndex(offsetInLine);		int[] offsets = layout.getLineOffsets();		if (offsetInLine == offsets[index + 1] - offsets[index] - 1) {			advancing = false;		}		renderer.disposeTextLayout(layout);	}	if (offsetInLine < content.getLine(caretLine).length()) {		caretOffset = getClusterNext(caretOffset, caretLine);		showCaret();	} else if (caretLine < content.getLineCount() - 1 && !isSingleLine()) {		// only go to next line if not in single line mode. fixes 5673		caretLine++;				caretOffset = content.getOffsetAtLine(caretLine);		showCaret();	}}