MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / backspace

Method backspace

source code/utils/Cursor.ts:875–880  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

873 }
874
875 backspace(): Cursor {
876 if (this.isAtStart()) {
877 return this
878 }
879 return this.left().modifyText(this)
880 }
881
882 deleteToLineStart(): { cursor: Cursor; killed: string } {
883 // 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