diff options
author | nyamatongwe <unknown> | 2001-03-30 22:22:21 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2001-03-30 22:22:21 +0000 |
commit | 3594f43e3ac140197f6c019f6d11158c5d7ea5c5 (patch) | |
tree | 7fc0c8778a629bc93d769661f27db28cd45444f9 /src/CellBuffer.cxx | |
parent | 3e8a4978da5e865e9daf90054fa2f77446939029 (diff) | |
download | scintilla-mirror-3594f43e3ac140197f6c019f6d11158c5d7ea5c5.tar.gz |
Undo coalescing now allows deletes of size 1 or 2 to be coalesced.
Document.cxx reformatted.
Diffstat (limited to 'src/CellBuffer.cxx')
-rw-r--r-- | src/CellBuffer.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/CellBuffer.cxx b/src/CellBuffer.cxx index b410af17c..3e9f0e7b7 100644 --- a/src/CellBuffer.cxx +++ b/src/CellBuffer.cxx @@ -460,7 +460,7 @@ void UndoHistory::AppendAction(actionType at, int position, char *data, int leng // Not allowed to coalesce if this set currentAction++; } else if (at == removeAction) { - if (lengthData == 2) { + if ((lengthData == 1) || (lengthData == 2)){ if ((position + lengthData * 2) == actPrevious.position) { ; // Backspace -> OK } else if (position == actPrevious.position) { |