()
| 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 '' |
no test coverage detected