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

Method right

src/utils/Cursor.ts:286–294  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

284 }
285
286 right(): Cursor {
287 if (this.offset >= this.text.length) return this
288
289 const chip = this.imageRefStartingAt(this.offset)
290 if (chip) return new Cursor(this.measuredText, chip.end)
291
292 const nextOffset = this.measuredText.nextOffset(this.offset)
293 return new Cursor(this.measuredText, Math.min(nextOffset, this.text.length))
294 }
295
296 /**
297 * If an [Image #N] chip ends at `offset`, return its bounds. Used by left()

Callers 11

delMethod · 0.95
deleteToLineEndMethod · 0.95
nextWORDMethod · 0.80
endOfWORDMethod · 0.80
executeXFunction · 0.80
applySingleMotionFunction · 0.80
handleNormalInputFunction · 0.80
handleKeyDownFunction · 0.80
useTextInputFunction · 0.80
mapKeyFunction · 0.80

Calls 2

imageRefStartingAtMethod · 0.95
nextOffsetMethod · 0.80

Tested by

no test coverage detected