- // If tracking changes, set all the text that is to be
- // erased to Type::INSERTED.
- for (pos_type k = pos_end; k >= pos; --k) {
- if (bparams.tracking_changes)
- par.setChange(k, Change::INSERTED);
- par.erase(k);
+ // Move over end-of-par change attr
+ // FIXME: change tracking (MG)
+ tmp.setChange(tmp.size(), Change(par.lookupChange(par.size()).type));
+
+ // If tracking changes, set all the text that is to be
+ // erased to Change::INSERTED.
+ for (pos_type k = pos_end; k >= pos; --k) {
+ if (bparams.trackChanges)
+ // FIXME: Change tracking (MG)
+ par.setChange(k, Change(Change::INSERTED));
+ // FIXME: change tracking (MG)
+ par.eraseChar(k, false);