https://www.mediawiki.org/wiki/Special:Code/MediaWiki/113426
Revision: 113426
Author: catrope
Date: 2012-03-08 23:21:28 +0000 (Thu, 08 Mar 2012)
Log Message:
-----------
Fix cursor adjustment in replace()
Modified Paths:
--------------
trunk/extensions/VisualEditor/modules/ve/dm/ve.dm.TransactionProcessor.js
Modified:
trunk/extensions/VisualEditor/modules/ve/dm/ve.dm.TransactionProcessor.js
===================================================================
--- trunk/extensions/VisualEditor/modules/ve/dm/ve.dm.TransactionProcessor.js
2012-03-08 23:21:26 UTC (rev 113425)
+++ trunk/extensions/VisualEditor/modules/ve/dm/ve.dm.TransactionProcessor.js
2012-03-08 23:21:28 UTC (rev 113426)
@@ -461,7 +461,7 @@
// Update the linear model
ve.batchedSplice( this.model.data, this.cursor, remove.length,
replacement );
- this.cursor += replacement.length - remove.length;
+ this.cursor += replacement.length;
// TODO sync the tree too
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs