diff options
author | nyamatongwe <devnull@localhost> | 2007-07-30 09:08:55 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2007-07-30 09:08:55 +0000 |
commit | 32535032bd41af3610609d3e400e3910be92c983 (patch) | |
tree | 30e829334e548ed60fbd6edd94a98f15e6a6d7b4 /src | |
parent | f491ce84f909a18d0234fad7aae20ad81b714dd4 (diff) | |
download | scintilla-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.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) { |