// Only remove deleted text and change
// the rest to inserted if ct is active,
// otherwise leave markup as is
- if (buffer.params().track_changes && tmpbuf->size() > 0) {
- if (!isFullyDeleted(insertion))
- tmpbuf->acceptChanges(0, tmpbuf->size());
- else
- tmpbuf->rejectChanges(0, tmpbuf->size());
+ if (buffer.params().track_changes) {
+ if (tmpbuf->size() > 0) {
+ if (!isFullyDeleted(insertion))
+ tmpbuf->acceptChanges(0, tmpbuf->size());
+ else
+ tmpbuf->rejectChanges(0, tmpbuf->size());
+ }
tmpbuf->setChange(Change(Change::INSERTED));
}
} else