r93477 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r93476‎ | r93477 | r93478 >
Date:18:49, 29 July 2011
Author:inez
Status:deferred
Tags:
Comment:
Fix problem with overwriting selected text, when length of selection is greater then half of block length
Modified paths:
  • /trunk/parsers/wikidom/lib/es/es.Surface.js (modified) (history)

Diff [purge]

Index: trunk/parsers/wikidom/lib/es/es.Surface.js
@@ -234,10 +234,10 @@
235235 var deleteSelection = this.selection;
236236 deleteSelection.normalize();
237237 this.location = this.selection.start;
 238+ this.selection = new es.Selection();
238239 this.deleteContent( deleteSelection );
239240 }
240241 var insertLocation = this.location;
241 - this.selection = new es.Selection();
242242 this.location = new es.Location(
243243 this.location.block, this.location.offset + val.length
244244 );

Status & tagging log