parent
c4ceafd22d
commit
e0877e5030
|
@ -85,13 +85,13 @@ class Buffer(object):
|
||||||
def undo(self):
|
def undo(self):
|
||||||
if len(self.undo_stack):
|
if len(self.undo_stack):
|
||||||
move = self.undo_stack.pop(-1)
|
move = self.undo_stack.pop(-1)
|
||||||
move.restore(move, ACT_UNDO)
|
move.restore(ACT_UNDO)
|
||||||
else:
|
else:
|
||||||
raise Exception, "Nothing to Undo!"
|
raise Exception, "Nothing to Undo!"
|
||||||
def redo(self):
|
def redo(self):
|
||||||
if len(self.redo_stack):
|
if len(self.redo_stack):
|
||||||
move = self.redo_stack.pop(-1)
|
move = self.redo_stack.pop(-1)
|
||||||
move.restore(move, ACT_REDO)
|
move.restore(ACT_REDO)
|
||||||
else:
|
else:
|
||||||
raise Exception, "Nothing to Redo!"
|
raise Exception, "Nothing to Redo!"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue