def get_error_point(view, error):
    """Get the error text point.

    lxml uses 1-based line and column numbers but ST wants them
    0-based, so subtract 1 from both."""
    return view.text_point(error.line - 1, error.column - 1)