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

Method deleteWordAfter

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

Source from the content-addressed store, hash-verified

969 }
970
971 deleteWordAfter(): Cursor {
972 if (this.isAtEnd()) {
973 return this
974 }
975
976 const target = this.snapOutOfImageRef(this.nextWord().offset, 'end')
977 return this.modifyText(new Cursor(this.measuredText, target))
978 }
979
980 private graphemeAt(pos: number): string {
981 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