mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 10:35:48 +00:00
Update lengthDifference in ve.dm.Transaction.pushReplace()
This makes the tests pass Change-Id: Iede7f47183378d80419f616ff62732a07d136d87
This commit is contained in:
parent
f9fd9ea66b
commit
d4d2ae88ad
|
@ -100,6 +100,7 @@ ve.dm.Transaction.prototype.pushReplace = function( remove, replacement ) {
|
|||
'remove': remove,
|
||||
'replacement': replacement
|
||||
} );
|
||||
this.lengthDifference += replacement.length - remove.length;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue