MCPcopy
hub / github.com/VSCodeVim/Vim / execActionWithCount

Method execActionWithCount

src/actions/motion.ts:1410–1420  ·  view source on GitHub ↗
(
    position: Position,
    vimState: VimState,
    count: number,
  )

Source from the content-addressed store, hash-verified

1408 keys = ['<C-End>'];
1409
1410 public override async execActionWithCount(
1411 position: Position,
1412 vimState: VimState,
1413 count: number,
1414 ): Promise<Position> {
1415 const line = count
1416 ? clamp(count - 1, 0, vimState.document.lineCount - 1)
1417 : vimState.document.lineCount - 1;
1418
1419 return new Position(line, 0).getLineEnd();
1420 }
1421}
1422
1423@RegisterAction

Callers

nothing calls this directly

Calls 2

clampFunction · 0.90
getLineEndMethod · 0.80

Tested by

no test coverage detected