diff options
author | nyamatongwe <unknown> | 2007-07-30 09:08:55 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2007-07-30 09:08:55 +0000 |
commit | 6cb0be3014ecbab91f2bfa92ca7ae4058e70192b (patch) | |
tree | 30e829334e548ed60fbd6edd94a98f15e6a6d7b4 /src | |
parent | 965d2c32a31756a8e6b4a74dbf4ba04877b3a9de (diff) | |
download | scintilla-mirror-6cb0be3014ecbab91f2bfa92ca7ae4058e70192b.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.cxx | 1 |
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) { |