int lineOffset; int offsetInLine;
int caretLine = getCaretLine(); int lineOffset = content.getOffsetAtLine(caretLine); int offsetInLine = caretOffset - lineOffset;
void doSelectionCursorPrevious() {	int lineOffset;	int offsetInLine;		lineOffset = content.getOffsetAtLine(caretLine);		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 (caretLine > 0) {		caretLine--;		lineOffset = content.getOffsetAtLine(caretLine);		caretOffset = lineOffset + content.getLine(caretLine).length();		showCaret();	}}