int subOffset = nodeletOffsetOutput.getOffset();
if (nodelet.getLength() - subOffset >= count) {
// Handle the special case where the delete is in a single text nodelet
// carefully, to avoid splitting it
nodelet.deleteData(subOffset, count);
getExtendedContext().editing().textNodeletAffected(
nodelet, subOffset, -count, TextNodeChangeType.DATA);
} else {
// General case
Node toExcl = implSplitText(offset + count);