mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 15:36:16 -04:00
Changeset: Replace appendATextToAssembler()
with a generator
This commit is contained in:
parent
9cd59a84af
commit
d74dd235a4
5 changed files with 26 additions and 10 deletions
|
@ -530,7 +530,7 @@ function Ace2Inner(editorInfo, cssManagers) {
|
|||
o.chars = lastLineLength;
|
||||
o.lines = 0;
|
||||
assem.append(o);
|
||||
Changeset.appendATextToAssembler(atext, assem);
|
||||
for (const op of Changeset.opsFromAText(atext)) assem.append(op);
|
||||
const newLen = oldLen + assem.getLengthChange();
|
||||
const changeset = Changeset.checkRep(
|
||||
Changeset.pack(oldLen, newLen, assem.toString(), atext.text.slice(0, -1)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue