Index: trunk/parsers/wikidom/lib/es/es.Surface.js |
— | — | @@ -245,13 +245,14 @@ |
246 | 246 | this.location = this.selection.end; |
247 | 247 | this.selection = new es.Selection(); |
248 | 248 | this.deleteContent( deleteSelection ); |
249 | | - } else if ( this.location.offset < block.getLength() - 1 ) { |
| 249 | + } else if ( this.location.offset < this.location.block.getLength() - 1 ) { |
250 | 250 | var deleteSelection = new es.Selection( |
251 | 251 | new es.Location( this.location.block, this.location.offset + 1 ), this.location |
252 | 252 | ); |
253 | 253 | this.selection = new es.Selection(); |
254 | 254 | this.location = deleteSelection.from; |
255 | 255 | this.deleteContent( deleteSelection ); |
| 256 | + this.location.offset--; |
256 | 257 | } |
257 | 258 | }; |
258 | 259 | |