aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2004-09-19 05:04:21 +0000
committernyamatongwe <devnull@localhost>2004-09-19 05:04:21 +0000
commit9d6532e6ab33f01d51b1b452cb44edb3ab0bedd3 (patch)
treebbe7709433b820ed81aca29a8d77e62b7b58cb50
parent0b7cdea2646de2f97f1896297e1d2f3a66d33be5 (diff)
downloadscintilla-mirror-9d6532e6ab33f01d51b1b452cb44edb3ab0bedd3.tar.gz
Fix to problem where performing actions moved to same position
as save point leading to IsSavePoint returning true incorrectly.
-rw-r--r--src/CellBuffer.cxx3
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