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