https://www.mediawiki.org/wiki/Special:Code/MediaWiki/103484

Revision: 103484
Author:   tparscal
Date:     2011-11-17 18:16:02 +0000 (Thu, 17 Nov 2011)
Log Message:
-----------
Fix for r103479 - had sign backwards! :(

Modified Paths:
--------------
    trunk/extensions/VisualEditor/modules/es/es.TransactionProcessor.js

Modified: trunk/extensions/VisualEditor/modules/es/es.TransactionProcessor.js
===================================================================
--- trunk/extensions/VisualEditor/modules/es/es.TransactionProcessor.js 
2011-11-17 18:14:14 UTC (rev 103483)
+++ trunk/extensions/VisualEditor/modules/es/es.TransactionProcessor.js 
2011-11-17 18:16:02 UTC (rev 103484)
@@ -190,7 +190,7 @@
                this.applyAnnotations( this.cursor + op.data.length );
                node = this.model.getNodeFromOffset( this.cursor );
                offset = this.model.getOffsetFromNode( node );
-               index = node.getIndexFromOffset( this.cursor + offset );
+               index = node.getIndexFromOffset( this.cursor - offset );
                this.rebuildNodes( op.data, null, node, index );
        } else {
                node = this.model.getNodeFromOffset( this.cursor );


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to