Index: trunk/extensions/VisualEditor/modules/es/models/es.DocumentModel.js |
— | — | @@ -769,7 +769,7 @@ |
770 | 770 | i = offset + direction, |
771 | 771 | steps = 0; |
772 | 772 | distance = Math.abs( distance ); |
773 | | - while ( i > 0 && i < this.data.length - 1 ) { |
| 773 | + while ( i > 0 && i < this.data.length ) { |
774 | 774 | if ( !es.DocumentModel.isStructuralOffset( this.data, i ) ) { |
775 | 775 | steps++; |
776 | 776 | offset = i; |