mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
Merge branch 'dmrewrite' of ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/VisualEditor into dmrewrite
This commit is contained in:
commit
945f39fe1a
|
@ -251,8 +251,8 @@ ve.dm.TransactionProcessor.processors.replace = function( op ) {
|
|||
// Update the linear model for this insert
|
||||
ve.batchSplice( this.document.data, this.cursor, opRemove.length, opInsert );
|
||||
affectedRanges.push( new ve.Range(
|
||||
this.cursor - this.adjusment,
|
||||
this.cursor - this.adjusment + opRemove.length
|
||||
this.cursor - this.adjustment,
|
||||
this.cursor - this.adjustment + opRemove.length
|
||||
) );
|
||||
prevCursor = this.cursor;
|
||||
this.cursor += opInsert.length;
|
||||
|
|
Loading…
Reference in a new issue