MCPcopy Index your code
hub / github.com/philc/vimium / "c"

Function "c"

content_scripts/mode_visual.js:481–491  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 },

Callers

nothing calls this directly

Calls 3

initMethod · 0.45

Tested by

no test coverage detected