Implemented getLineOfCursorPosition()