

def find_next_sel(trans_sels, current_sel):
    'Find the region in `trans_sels` that is right after `current_sel`.\n    Assume `trans_sels` is sorted.\n    '
    for (i, sel) in enumerate(trans_sels):
        if (trans_sels.end() > current_sel.end()):
            return (i, trans_sels[i])
    return (0, trans_sels[0])

dataset/ETHPy150Open MaokaiLin/PowerCursors/power_cursors.py find_next_sel/VarMisuse@30/90 `sel`->`trans_sels`