def get_editable_position(self, line_no, col_no):
        hunk_ref = self.get_closest_hunk_ref_before(line_no)

        # No diff hunks exist before the selected line.
        if not hunk_ref:
            return line_no, col_no

        # The selected line is within the hunk.
        if line_no >= hunk_ref.section_end:
            hunk_change_index = line_no - hunk_ref.section_start - 1
            change = hunk_ref.hunk.changes[hunk_change_index]
            # If a removed line is selected, the cursor will be offset by non-existant
            # columns of the removed lines.  Therefore, move the cursor to column zero
            # when removed line is selected.
            return change.saved_pos, col_no if change.type == "+" else 0

        # The selected line is after the hunk.
        else:
            lines_after_hunk_end = line_no - hunk_ref.section_end - 1
            # Adjust line position for remove-only hunks.
            if all(change.type == "-" for change in hunk_ref.hunk.changes):
                lines_after_hunk_end += 1
            hunk_end_in_saved = hunk_ref.hunk.saved_start + hunk_ref.hunk.saved_length
            return hunk_end_in_saved + lines_after_hunk_end, col_no
dataset/ETHPy150Open divmain/GitSavvy/core/commands/inline_diff.py/GsInlineDiffOpenFile.get_editable_position/swapped operands of `>=`