Changeset: Turn newOp() into a real class

This commit is contained in:
Richard Hansen 2021-10-25 01:21:19 -04:00
parent fba0bb6dff
commit 657492e191
7 changed files with 99 additions and 61 deletions

View file

@ -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);