MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / executeOperatorGg

Function executeOperatorGg

source code/vim/operators.ts:543–558  ·  view source on GitHub ↗
(
  op: Operator,
  count: number,
  ctx: OperatorContext,
)

Source from the content-addressed store, hash-verified

541}
542
543export function executeOperatorGg(
544 op: Operator,
545 count: number,
546 ctx: OperatorContext,
547): void {
548 // count=1 means no count given, target = first line
549 // otherwise target = line N
550 const target =
551 count === 1 ? ctx.cursor.startOfFirstLine() : ctx.cursor.goToLine(count)
552
553 if (target.equals(ctx.cursor)) return
554
555 const range = getOperatorRange(ctx.cursor, target, 'gg', op, count)
556 applyOperator(op, range.from, range.to, ctx, range.linewise)
557 ctx.recordChange({ type: 'operator', op, motion: 'gg', count })
558}

Callers 1

fromOperatorGFunction · 0.85

Calls 5

getOperatorRangeFunction · 0.85
applyOperatorFunction · 0.85
startOfFirstLineMethod · 0.80
goToLineMethod · 0.80
equalsMethod · 0.45

Tested by

no test coverage detected