mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 15:36:16 -04:00
Changeset: Turn newOp()
into a real class
This commit is contained in:
parent
fba0bb6dff
commit
657492e191
7 changed files with 99 additions and 61 deletions
|
@ -523,7 +523,7 @@ function Ace2Inner(editorInfo, cssManagers) {
|
|||
const upToLastLine = rep.lines.offsetOfIndex(numLines - 1);
|
||||
const lastLineLength = rep.lines.atIndex(numLines - 1).text.length;
|
||||
const assem = Changeset.smartOpAssembler();
|
||||
const o = Changeset.newOp('-');
|
||||
const o = new Changeset.Op('-');
|
||||
o.chars = upToLastLine;
|
||||
o.lines = numLines - 1;
|
||||
assem.append(o);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue