result.addChild(edit2);
edit2 = null;
} else {
TextEdit piece = clippedEdit(edit2, new Region(-1, edit1.getOffset() + delta));
if (piece != null) {
piece.moveTree(-delta);
result.addChild(piece);
}
final int d = TextEditUtil.delta(edit1);
final Region region = new Region(edit1.getOffset() + delta, edit1.getLength() + d);
final int end = endOffset(region);