mirror of
https://github.com/ankitects/anki.git
synced 2025-11-11 15:17:12 -05:00
remove trailing undo barrier on end
This commit is contained in:
parent
95447a23ec
commit
52cfef6e6c
1 changed files with 3 additions and 0 deletions
|
|
@ -2108,6 +2108,9 @@ insert into undoLog values (null, 'insert into %(t)s (rowid""" % {'t': table}
|
||||||
return
|
return
|
||||||
self.s.flush()
|
self.s.flush()
|
||||||
end = self._latestUndoRow()
|
end = self._latestUndoRow()
|
||||||
|
while self.undoStack[-1] is None:
|
||||||
|
# strip off barrier
|
||||||
|
self.undoStack.pop()
|
||||||
self.undoStack[-1][2] = end
|
self.undoStack[-1][2] = end
|
||||||
if self.undoStack[-1][1] == self.undoStack[-1][2]:
|
if self.undoStack[-1][1] == self.undoStack[-1][2]:
|
||||||
self.undoStack.pop()
|
self.undoStack.pop()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue