()
| 535 | } |
| 536 | |
| 537 | extendSelection() { |
| 538 | const initialDirection = this.movement.getDirection(); |
| 539 | // TODO(philc): Reformat this to be a plain loop rather than a closure. |
| 540 | return (() => { |
| 541 | const result = []; |
| 542 | for (const direction of [initialDirection, this.movement.opposite[initialDirection]]) { |
| 543 | this.movement.runMovement(direction, lineboundary); |
| 544 | result.push(this.movement.reverseSelection()); |
| 545 | } |
| 546 | return result; |
| 547 | })(); |
| 548 | } |
| 549 | } |
| 550 | |
| 551 | class CaretMode extends VisualMode { |
no test coverage detected