aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/CellBuffer.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2001-03-30 22:22:21 +0000
committernyamatongwe <devnull@localhost>2001-03-30 22:22:21 +0000
commite98a8c51bf3b100b9098555e730b4223b90ba3af (patch)
tree7fc0c8778a629bc93d769661f27db28cd45444f9 /src/CellBuffer.cxx
parent6b82aec7f45d67267d8521dc64a6e421de93f150 (diff)
downloadscintilla-mirror-e98a8c51bf3b100b9098555e730b4223b90ba3af.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.cxx2
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) {