def next_or_prev_region(self, direction, regions, point):
        if direction == "next":
            return self.next_region(regions, point)
        else:
            return self.prev_region(regions, point)
dataset/ETHPy150Open SublimeGit/SublimeGit/sgit/status.py/GitStatusMoveCmd.next_or_prev_region/original