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

Method backspace

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

Source from the content-addressed store, hash-verified

846 }
847
848 backspace(): Cursor {
849 if (this.isAtStart()) {
850 return this
851 }
852 return this.left().modifyText(this)
853 }
854
855 deleteToLineStart(): { cursor: Cursor; killed: string } {
856 // If cursor is right after a newline (at start of line), delete just that

Callers 5

handleKeyDownFunction · 0.80
useTextInputFunction · 0.80
handleEnterFunction · 0.80
mapKeyFunction · 0.80
onInputFunction · 0.80

Calls 3

isAtStartMethod · 0.95
leftMethod · 0.95
modifyTextMethod · 0.80

Tested by

no test coverage detected