Index: trunk/extensions/VisualEditor/modules/es/views/es.SurfaceView.js |
— | — | @@ -284,9 +284,9 @@ |
285 | 285 | } else if ( instruction === 'home' ) { |
286 | 286 | this.cursor.initialLeft = null; |
287 | 287 | to = this.documentView.getRenderedLineRangeFromOffset( |
288 | | - this.cursor.initialBias |
289 | | - ? this.documentView.getModel().getRelativeContentOffset( this.selection.to, -1 ) |
290 | | - : this.selection.to |
| 288 | + this.cursor.initialBias ? |
| 289 | + this.documentView.getModel().getRelativeContentOffset( this.selection.to, -1 ) : |
| 290 | + this.selection.to |
291 | 291 | ).start; |
292 | 292 | if ( !this.keyboard.keys.shift ) { |
293 | 293 | from = to; |
— | — | @@ -294,9 +294,9 @@ |
295 | 295 | } else if ( instruction === 'end' ) { |
296 | 296 | this.cursor.initialLeft = null; |
297 | 297 | to = this.documentView.getRenderedLineRangeFromOffset( |
298 | | - this.cursor.initialBias |
299 | | - ? this.documentView.getModel().getRelativeContentOffset( this.selection.to, -1 ) |
300 | | - : this.selection.to |
| 298 | + this.cursor.initialBias ? |
| 299 | + this.documentView.getModel().getRelativeContentOffset( this.selection.to, -1 ) : |
| 300 | + this.selection.to |
301 | 301 | ).end; |
302 | 302 | if ( !this.keyboard.keys.shift ) { |
303 | 303 | from = to; |