def _convert_offset_to_line_col(offsets: list[int], offset: int) -> tuple[int, int]:
    """ just as it says, translate a zero-based offset to a line and column."""

    line: int = 0
    col: int = 0

    try:
        while offsets[line] < offset:
            line += 1
    except IndexError as e:
        pass

    col = offset - offsets[line - 1] if line > 0 else offset + 1

    return(line, col - 1)