From 3594f43e3ac140197f6c019f6d11158c5d7ea5c5 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Fri, 30 Mar 2001 22:22:21 +0000 Subject: Undo coalescing now allows deletes of size 1 or 2 to be coalesced. Document.cxx reformatted. --- src/CellBuffer.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/CellBuffer.cxx') 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) { -- cgit v1.2.3