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

Method imageRefStartingAt

src/utils/Cursor.ts:330–333  ·  view source on GitHub ↗
(offset: number)

Source from the content-addressed store, hash-verified

328 }
329
330 imageRefStartingAt(offset: number): { start: number; end: number } | null {
331 const m = this.text.slice(offset).match(/^\[Image #\d+\]/)
332 return m ? { start: offset, end: offset + m[0].length } : null
333 }
334
335 /**
336 * If offset lands strictly inside an [Image #N] chip, snap it to the given

Callers 2

rightMethod · 0.95
deleteTokenBeforeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected