def redo(self):
        """Redo the last command or change."""
        self.last_action = "redo"
        if self.current_state == 1-len(self.history):
            return False
        index = self.current_state+1
        self.restore_state(index)

    #
    # Cursor operations
    #
dataset/ETHPy150Open richrd/suplemon/suplemon/editor.py/Editor.redo/swapped operands of `-`