parent
c4ceafd22d
commit
e0877e5030
|
@ -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!"
|
||||
|
||||
|
|
Loading…
Reference in New Issue