fixed undo bug

--HG--
branch : pmacs2
This commit is contained in:
moculus 2007-06-26 21:28:38 +00:00
parent c4ceafd22d
commit e0877e5030
1 changed files with 2 additions and 2 deletions

View File

@ -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!"