From e0877e5030768bffcca880e79935465a21d4628d Mon Sep 17 00:00:00 2001 From: moculus Date: Tue, 26 Jun 2007 21:28:38 +0000 Subject: [PATCH] fixed undo bug --HG-- branch : pmacs2 --- buffer2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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!"