def _change_selection(view, regions, pos):
    """Extract the next selection, push all other fields."""
    # save and remove the position in the regions
    sel = regions[pos]
    del regions[pos]
    # add the regions as fields to the view
    _set_fields(view, regions)
    # add a feedback to the statusbar
    if len(regions) >= 1:
        view.set_status("meu_field_message",
                        "Selection-Field {0} of {1}"
                        .format(pos + 1, len(regions) + 1))
    else:
        view.erase_status("meu_field_message")
    # return the selection, which was at the position
    sel_regions = [sel]
    return sel_regions
dataset/ETHPy150Open philippotto/Sublime-MultiEditUtils/selection_fields.py/_change_selection/original