MCPcopy Index your code
hub / github.com/codeaashu/claude-code / executeOperatorTextObj

Function executeOperatorTextObj

src/vim/operators.ts:80–97  ·  view source on GitHub ↗
(
  op: Operator,
  scope: TextObjScope,
  objType: string,
  count: number,
  ctx: OperatorContext,
)

Source from the content-addressed store, hash-verified

78 * Execute an operator with a text object.
79 */
80export function executeOperatorTextObj(
81 op: Operator,
82 scope: TextObjScope,
83 objType: string,
84 count: number,
85 ctx: OperatorContext,
86): void {
87 const range = findTextObject(
88 ctx.text,
89 ctx.cursor.offset,
90 objType,
91 scope === 'inner',
92 )
93 if (!range) return
94
95 applyOperator(op, range.start, range.end, ctx)
96 ctx.recordChange({ type: 'operatorTextObj', op, objType, scope, count })
97}
98
99/**
100 * Execute a line operation (dd, cc, yy).

Callers 2

fromOperatorTextObjFunction · 0.85
replayLastChangeFunction · 0.85

Calls 2

findTextObjectFunction · 0.85
applyOperatorFunction · 0.85

Tested by

no test coverage detected