()
| 820 | } |
| 821 | |
| 822 | [kDeleteRight]() { |
| 823 | if (this.cursor < this.line.length) { |
| 824 | this[kBeforeEdit](this.line, this.cursor); |
| 825 | // The number of UTF-16 units comprising the character to the left |
| 826 | const charSize = charLengthAt(this.line, this.cursor); |
| 827 | this.line = |
| 828 | StringPrototypeSlice(this.line, 0, this.cursor) + |
| 829 | StringPrototypeSlice( |
| 830 | this.line, |
| 831 | this.cursor + charSize, |
| 832 | this.line.length, |
| 833 | ); |
| 834 | this[kRefreshLine](); |
| 835 | } |
| 836 | } |
| 837 | |
| 838 | [kDeleteWordLeft]() { |
| 839 | if (this.cursor > 0) { |
nothing calls this directly
no test coverage detected