()
| 479 | return new VisualLineMode().init(); |
| 480 | }, |
| 481 | "c"() { |
| 482 | // If we're already in caret mode, or if the selection looks the same as it would in caret mode, |
| 483 | // then callapse to anchor (so that the caret-mode selection will seem unchanged). Otherwise, |
| 484 | // we're in visual mode and the user has moved the focus, so collapse to that. |
| 485 | if ((this.name === "caret") || (this.selection.toString().length <= 1)) { |
| 486 | this.movement.collapseSelectionToAnchor(); |
| 487 | } else { |
| 488 | this.movement.collapseSelectionToFocus(); |
| 489 | } |
| 490 | return new CaretMode().init(); |
| 491 | }, |
| 492 | "o"() { |
| 493 | return this.movement.reverseSelection(); |
| 494 | }, |
nothing calls this directly
no test coverage detected