def append(self, text):
        self.history.append(text)
        i = len(self.history) - self.histlimit
        if i < 0:
            self.history = self.history[abs(i):]
        self.histidx = len(self.history)
dataset/ETHPy150Open ejeschke/ginga/ginga/misc/LineHistory.py/LineHistory.append/swapped operands of `-`