caretOffset = getOffsetAtMouseLocation(caretX, line);
caretOffset = getOffsetAtMouseLocation(caretX, caretLine);
void doLineUp() {	int line = content.getLineAtOffset(caretOffset);		if (line != caretLine) {		// caret is at end of visual line/start of next visual line in 		// word wrap mode		line = caretLine;	}	if (line > 0) {		String lineText = content.getLine(line);		int lineOffset = content.getOffsetAtLine(line);		int offsetInLine = caretOffset - lineOffset;				int caretX = getXAtOffset(lineText, line, offsetInLine);		caretLine = --line;		if (isBidi()) {			caretOffset = getBidiOffsetAtMouseLocation(caretX, line);		}		else {			caretOffset = getOffsetAtMouseLocation(caretX, line);		}			}	showCaret();}