@vunk/plus 1.11.9 → 1.11.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4351,21 +4351,22 @@ var _sfc_main = defineComponent({
|
|
|
4351
4351
|
setTimeout(write, props2.delay);
|
|
4352
4352
|
return;
|
|
4353
4353
|
}
|
|
4354
|
+
const latestParagraph = theData.value.at(-1);
|
|
4354
4355
|
const tailAction = resolveTailParagraphAction({
|
|
4355
4356
|
source: props2.source,
|
|
4356
4357
|
currentIndex: currentIndex.value,
|
|
4357
|
-
lastParagraph
|
|
4358
|
+
lastParagraph: latestParagraph
|
|
4358
4359
|
});
|
|
4359
4360
|
if (tailAction.type === "none") {
|
|
4360
4361
|
return;
|
|
4361
4362
|
}
|
|
4362
4363
|
if (tailAction.type === "merge") {
|
|
4363
|
-
if (!
|
|
4364
|
+
if (!latestParagraph) {
|
|
4364
4365
|
return;
|
|
4365
4366
|
}
|
|
4366
|
-
|
|
4367
|
-
|
|
4368
|
-
|
|
4367
|
+
latestParagraph.end = tailAction.data.end;
|
|
4368
|
+
latestParagraph.value = tailAction.data.value;
|
|
4369
|
+
latestParagraph.separator = tailAction.data.separator;
|
|
4369
4370
|
return;
|
|
4370
4371
|
}
|
|
4371
4372
|
addParagraph(tailAction.data);
|