aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2007-07-30 09:08:55 +0000
committernyamatongwe <devnull@localhost>2007-07-30 09:08:55 +0000
commit32535032bd41af3610609d3e400e3910be92c983 (patch)
tree30e829334e548ed60fbd6edd94a98f15e6a6d7b4 /src
parentf491ce84f909a18d0234fad7aae20ad81b714dd4 (diff)
downloadscintilla-mirror-32535032bd41af3610609d3e400e3910be92c983.tar.gz
Fix bug #1760848 by ensuring undo stack level is maintained during an
automatic load while reload.preserves.undo=1.
Diffstat (limited to 'src')
-rw-r--r--src/CellBuffer.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/CellBuffer.cxx b/src/CellBuffer.cxx
index 1beeefc6b..6d04e04c9 100644
--- a/src/CellBuffer.cxx
+++ b/src/CellBuffer.cxx
@@ -471,6 +471,7 @@ void UndoHistory::BeginUndoAction() {
}
void UndoHistory::EndUndoAction() {
+ PLATFORM_ASSERT(undoSequenceDepth > 0);
EnsureUndoRoom();
undoSequenceDepth--;
if (0 == undoSequenceDepth) {