def get_point(view, row, column):
    """Returns the point that corresponds to (row, column).

    Same as view.text_point(row, column) except if column goes past the end
    of the line, it returns the end of the line instead.
    """
    row_start = view.text_point(row, 0)
    line_length = len(view.line(row_start))
    return row_start + min(column, line_length)