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

Method deleteWordAfter

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

Source from the content-addressed store, hash-verified

944 }
945
946 deleteWordAfter(): Cursor {
947 if (this.isAtEnd()) {
948 return this
949 }
950
951 const target = this.snapOutOfImageRef(this.nextWord().offset, 'end')
952 return this.modifyText(new Cursor(this.measuredText, target))
953 }
954
955 private graphemeAt(pos: number): string {
956 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