r92685 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r92684‎ | r92685 | r92686 >
Date:21:31, 20 July 2011
Author:inez
Status:deferred
Tags:
Comment:
Fix if statement condition for deleting content with delete key at the very end of the line
Modified paths:
  • /trunk/parsers/wikidom/lib/es/es.Surface.js (modified) (history)

Diff [purge]

Index: trunk/parsers/wikidom/lib/es/es.Surface.js
@@ -246,7 +246,7 @@
247247 this.location = this.selection.start;
248248 this.selection = new es.Selection();
249249 this.deleteContent( deleteSelection );
250 - } else if ( this.location.offset < this.location.block.getLength() - 1 ) {
 250+ } else if ( this.location.offset < this.location.block.getLength() ) {
251251 var deleteSelection = new es.Selection(
252252 new es.Location( this.location.block, this.location.offset + 1 ), this.location
253253 );

Status & tagging log