diff options
author | nyamatongwe <unknown> | 2009-04-04 23:00:39 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2009-04-04 23:00:39 +0000 |
commit | 89db940cd0d6f3a2da913bc0098c777c5c7c50ee (patch) | |
tree | 333fb21b39eee1201632805511bdc539ea23f9dc /src/CellBuffer.cxx | |
parent | 977371ca0595af895bf255b135292e12f80eff01 (diff) | |
download | scintilla-mirror-89db940cd0d6f3a2da913bc0098c777c5c7c50ee.tar.gz |
Added AddUndoAction call for adding application actions into undo stack.
Diffstat (limited to 'src/CellBuffer.cxx')
-rw-r--r-- | src/CellBuffer.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/CellBuffer.cxx b/src/CellBuffer.cxx index 0e9ae6950..ccb357a41 100644 --- a/src/CellBuffer.cxx +++ b/src/CellBuffer.cxx @@ -424,6 +424,9 @@ void UndoHistory::AppendAction(actionType at, int position, char *data, int leng } else if (!actions[currentAction].mayCoalesce) { // Not allowed to coalesce if this set currentAction++; + } else if (at == containerAction) { + // Not allowed to coalesce container actions + currentAction++; } else if (at == removeAction) { if ((lengthData == 1) || (lengthData == 2)){ if ((position + lengthData) == actPrevious.position) { @@ -862,6 +865,11 @@ void CellBuffer::EndUndoAction() { uh.EndUndoAction(); } +void CellBuffer::AddUndoAction(int token) { + bool startSequence; + uh.AppendAction(containerAction, token, 0, 0, startSequence); +} + void CellBuffer::DeleteUndoHistory() { uh.DeleteUndoHistory(); } |