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

Method nextOffset

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

Source from the content-addressed store, hash-verified

1469 }
1470
1471 nextOffset(offset: number): number {
1472 return this.withCache(`next:${offset}`, () => {
1473 const boundaries = this.getGraphemeBoundaries()
1474 return this.binarySearchBoundary(boundaries, offset, true)
1475 })
1476 }
1477
1478 prevOffset(offset: number): number {
1479 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