Account for the paragraph marker
This commit is contained in:
Juergen Spitzmueller 2023-10-04 13:49:34 +02:00
parent 3f0bb8aa43
commit 90307cf212

View File

@ -297,11 +297,13 @@ pasteSelectionHelper(DocIterator const & cur, ParagraphList const & parlist,
// 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