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

Method nextOffset

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

Source from the content-addressed store, hash-verified

1494 }
1495
1496 nextOffset(offset: number): number {
1497 return this.withCache(`next:${offset}`, () => {
1498 const boundaries = this.getGraphemeBoundaries()
1499 return this.binarySearchBoundary(boundaries, offset, true)
1500 })
1501 }
1502
1503 prevOffset(offset: number): number {
1504 if (offset <= 0) return 0

Callers 7

rightMethod · 0.80
advanceMethod · 0.80
graphemeAtMethod · 0.80
findCharacterMethod · 0.80
executePasteFunction · 0.80
getOperatorRangeFunction · 0.80
getOperatorRangeForFindFunction · 0.80

Calls 3

withCacheMethod · 0.95
getGraphemeBoundariesMethod · 0.95
binarySearchBoundaryMethod · 0.95

Tested by

no test coverage detected