MCPcopy
hub / github.com/claude-code-best/claude-code / left

Method left

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

Source from the content-addressed store, hash-verified

274 }
275
276 left(): Cursor {
277 if (this.offset === 0) return this
278
279 const chip = this.imageRefEndingAt(this.offset)
280 if (chip) return new Cursor(this.measuredText, chip.start)
281
282 const prevOffset = this.measuredText.prevOffset(this.offset)
283 return new Cursor(this.measuredText, prevOffset)
284 }
285
286 right(): Cursor {
287 if (this.offset >= this.text.length) return this

Callers 7

backspaceMethod · 0.95
deleteToLineStartMethod · 0.95
prevWORDMethod · 0.80
applySingleMotionFunction · 0.80
handleKeyDownFunction · 0.80
useTextInputFunction · 0.80
mapKeyFunction · 0.80

Calls 2

imageRefEndingAtMethod · 0.95
prevOffsetMethod · 0.80

Tested by

no test coverage detected