if (line != caretLine) {   line = caretLine; } lineOffset = content.getOffsetAtLine(line);
lineOffset = content.getOffsetAtLine(caretLine);
void doSelectionCursorPrevious() {	int line = content.getLineAtOffset(caretOffset);	int lineOffset;	int offsetInLine;		if (line != caretLine) {		// caret is at end of visual line/start of next visual line in 		// word wrap mode		line = caretLine;	}	lineOffset = content.getOffsetAtLine(line);		offsetInLine = caretOffset - lineOffset;	if (offsetInLine > 0) {		// 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_PREVIOUS;				caretOffset--;		showCaret();	}	else	if (line > 0) {		line--;		lineOffset = content.getOffsetAtLine(line);		caretOffset = lineOffset + content.getLine(line).length();		caretLine = line;		showCaret();	}}