From 9d6532e6ab33f01d51b1b452cb44edb3ab0bedd3 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 19 Sep 2004 05:04:21 +0000 Subject: Fix to problem where performing actions moved to same position as save point leading to IsSavePoint returning true incorrectly. --- src/CellBuffer.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/CellBuffer.cxx') diff --git a/src/CellBuffer.cxx b/src/CellBuffer.cxx index 0d3090259..8183e4d8d 100644 --- a/src/CellBuffer.cxx +++ b/src/CellBuffer.cxx @@ -450,6 +450,9 @@ void UndoHistory::AppendAction(actionType at, int position, char *data, int leng //Platform::DebugPrintf("%% %d action %d %d %d\n", at, position, lengthData, currentAction); //Platform::DebugPrintf("^ %d action %d %d\n", actions[currentAction - 1].at, // actions[currentAction - 1].position, actions[currentAction - 1].lenData); + if (currentAction < savePoint) { + savePoint = -1; + } if (currentAction >= 1) { if (0 == undoSequenceDepth) { // Top level actions may not always be coalesced -- cgit v1.2.3