diff options
author | nyamatongwe <unknown> | 2004-09-19 05:04:21 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2004-09-19 05:04:21 +0000 |
commit | 8096dd364d17a939bbe58d735cc388f56b412210 (patch) | |
tree | bbe7709433b820ed81aca29a8d77e62b7b58cb50 /src/CellBuffer.cxx | |
parent | ca97e75f3b9d489fa57e125c1304e919f42372ec (diff) | |
download | scintilla-mirror-8096dd364d17a939bbe58d735cc388f56b412210.tar.gz |
Fix to problem where performing actions moved to same position
as save point leading to IsSavePoint returning true incorrectly.
Diffstat (limited to 'src/CellBuffer.cxx')
-rw-r--r-- | src/CellBuffer.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
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 |