()
| 869 | } |
| 870 | |
| 871 | deleteToLineEnd(): { cursor: Cursor; killed: string } { |
| 872 | // If cursor is on a newline character, delete just that character |
| 873 | if (this.text[this.offset] === '\n') { |
| 874 | return { cursor: this.modifyText(this.right()), killed: '\n' } |
| 875 | } |
| 876 | |
| 877 | const endCursor = this.endOfLine() |
| 878 | const killed = this.text.slice(this.offset, endCursor.offset) |
| 879 | return { cursor: this.modifyText(endCursor), killed } |
| 880 | } |
| 881 | |
| 882 | deleteToLogicalLineEnd(): Cursor { |
| 883 | // If cursor is on a newline character, delete just that character |
no test coverage detected