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

        return next((change for change in reversed(all_changes)
                    if change < current_row), default)
dataset/ETHPy150Open jisaacks/GitGutter/git_gutter_change.py/GitGutterPrevChangeCommand.jump/original