Fix rewind_savepoint() not working

This commit is contained in:
Kovid Goyal 2013-11-08 12:39:29 +05:30
parent 17f6f40fde
commit 89c33c3713

View File

@ -57,7 +57,7 @@ class GlobalUndoHistory(object):
revert to state before creating savepoint. ''' revert to state before creating savepoint. '''
if self.pos > 0 and self.pos == len(self.states) - 1: if self.pos > 0 and self.pos == len(self.states) - 1:
self.pos -= 1 self.pos -= 1
cleanup(self.states.pop()) cleanup([self.states.pop().container])
ans = self.current_container ans = self.current_container
ans.message = None ans.message = None
return ans return ans