def prev(self):
        i = 1 - self.histidx
        if i >= 0:
            self.histidx = i
            return self.history[i]

        raise ValueError("At beginning")
dataset/ETHPy150Open ejeschke/ginga/ginga/misc/LineHistory.py/LineHistory.prev/swapped operands of `-`