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

Method deleteWordAfter

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

Source from the content-addressed store, hash-verified

971 }
972
973 deleteWordAfter(): Cursor {
974 if (this.isAtEnd()) {
975 return this
976 }
977
978 const target = this.snapOutOfImageRef(this.nextWord().offset, 'end')
979 return this.modifyText(new Cursor(this.measuredText, target))
980 }
981
982 private graphemeAt(pos: number): string {
983 if (pos >= this.text.length) return ''

Callers 2

handleKeyDownFunction · 0.80
useTextInputFunction · 0.80

Calls 4

isAtEndMethod · 0.95
snapOutOfImageRefMethod · 0.95
nextWordMethod · 0.95
modifyTextMethod · 0.95

Tested by

no test coverage detected