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

Method backspace

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

Source from the content-addressed store, hash-verified

871 }
872
873 backspace(): Cursor {
874 if (this.isAtStart()) {
875 return this
876 }
877 return this.left().modifyText(this)
878 }
879
880 deleteToLineStart(): { cursor: Cursor; killed: string } {
881 // If cursor is right after a newline (at start of line), delete just that

Callers 5

handleKeyDownFunction · 0.45
useTextInputFunction · 0.45
handleEnterFunction · 0.45
mapKeyFunction · 0.45
onInputFunction · 0.45

Calls 3

isAtStartMethod · 0.95
leftMethod · 0.95
modifyTextMethod · 0.80

Tested by

no test coverage detected