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

Method left

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

Source from the content-addressed store, hash-verified

299 }
300
301 left(): Cursor {
302 if (this.offset === 0) return this
303
304 const chip = this.imageRefEndingAt(this.offset)
305 if (chip) return new Cursor(this.measuredText, chip.start)
306
307 const prevOffset = this.measuredText.prevOffset(this.offset)
308 return new Cursor(this.measuredText, prevOffset)
309 }
310
311 right(): Cursor {
312 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