if (line != caretLine) {   line = caretLine; } offsetInLine = caretOffset - content.getOffsetAtLine(line); if (offsetInLine < content.getLine(line).length()) {
offsetInLine = caretOffset - content.getOffsetAtLine(caretLine); if (offsetInLine < content.getLine(caretLine).length()) {
void doSelectionCursorNext() {	int line = content.getLineAtOffset(caretOffset);	int offsetInLine;		if (line != caretLine) {		// caret is at end of visual line/start of next visual line in 		// word wrap mode		line = caretLine;	}	offsetInLine = caretOffset - content.getOffsetAtLine(line);	if (offsetInLine < content.getLine(line).length()) {		// Remember the last direction. Always update lastCaretDirection,		// even though it's not used in non-bidi mode in order to avoid 		// extra methods.				lastCaretDirection = ST.COLUMN_NEXT;		caretOffset++;		showCaret();	}	else	if (line < content.getLineCount() - 1 && isSingleLine() == false) {		// only go to next line if not in single line mode. fixes 5673		line++;		caretOffset = content.getOffsetAtLine(line);		caretLine = line;		showCaret();	}}