()
| 896 | } |
| 897 | |
| 898 | deleteToLineEnd(): { cursor: Cursor; killed: string } { |
| 899 | // If cursor is on a newline character, delete just that character |
| 900 | if (this.text[this.offset] === '\n') { |
| 901 | return { cursor: this.modifyText(this.right()), killed: '\n' } |
| 902 | } |
| 903 | |
| 904 | const endCursor = this.endOfLine() |
| 905 | const killed = this.text.slice(this.offset, endCursor.offset) |
| 906 | return { cursor: this.modifyText(endCursor), killed } |
| 907 | } |
| 908 | |
| 909 | deleteToLogicalLineEnd(): Cursor { |
| 910 | // If cursor is on a newline character, delete just that character |
no test coverage detected