Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
* `opAttributeValue()`
* `appendATextToAssembler()`: Deprecated in favor of the new `opsFromAText()`
generator function.
* `newOp()`: Deprecated in favor of the new `Op` class.

# 1.8.15

Expand Down
4 changes: 2 additions & 2 deletions src/node/utils/padDiff.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ PadDiff.prototype._createDeletionChangeset = function (cs, startAText, apool) {
let curChar = 0;
let curLineOpIter = null;
let curLineOpIterLine;
let curLineNextOp = Changeset.newOp('+');
let curLineNextOp = new Changeset.Op('+');

const unpacked = Changeset.unpack(cs);
const csIter = Changeset.opIterator(unpacked.ops);
Expand Down Expand Up @@ -302,7 +302,7 @@ PadDiff.prototype._createDeletionChangeset = function (cs, startAText, apool) {
}

if (!curLineNextOp.chars) {
curLineNextOp = curLineOpIter.hasNext() ? curLineOpIter.next() : Changeset.newOp();
curLineNextOp = curLineOpIter.hasNext() ? curLineOpIter.next() : new Changeset.Op();
}

const charsToUse = Math.min(numChars, curLineNextOp.chars);
Expand Down
Loading