cter at a certain line, calculate the index of
        the first character on that line.

        Return (row, index) tuple.
        r