

def jump(self, all_changes, current_row):
    if settings.get('next_prev_change_wrap', True):
        default = all_changes[0]
    else:
        default = all_changes[(- 1)]
    return next((change for change in all_changes if (change > current_row)), default)

dataset/ETHPy150Open jisaacks/GitGutter/git_gutter_change.py GitGutterNextChangeCommand.jump/original