Merge branch 'dmrewrite' of ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/VisualEditor into dmrewrite

This commit is contained in:
Christian Williams 2012-06-14 17:02:47 -07:00
commit 945f39fe1a

View file

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