diff --git a/buffer2.py b/buffer2.py index 9eb8e93..2e479a3 100644 --- a/buffer2.py +++ b/buffer2.py @@ -85,13 +85,13 @@ class Buffer(object): def undo(self): if len(self.undo_stack): move = self.undo_stack.pop(-1) - move.restore(move, ACT_UNDO) + move.restore(ACT_UNDO) else: raise Exception, "Nothing to Undo!" def redo(self): if len(self.redo_stack): move = self.redo_stack.pop(-1) - move.restore(move, ACT_REDO) + move.restore(ACT_REDO) else: raise Exception, "Nothing to Redo!"