()
| 247 | } |
| 248 | |
| 249 | private deleteToLineStart(): void { |
| 250 | if (this.cursor === 0) return; |
| 251 | this.pushUndo(); |
| 252 | const deletedText = this.value.slice(0, this.cursor); |
| 253 | this.killRing.push(deletedText, { prepend: true, accumulate: this.lastAction === "kill" }); |
| 254 | this.lastAction = "kill"; |
| 255 | this.value = this.value.slice(this.cursor); |
| 256 | this.cursor = 0; |
| 257 | } |
| 258 | |
| 259 | private deleteToLineEnd(): void { |
| 260 | if (this.cursor >= this.value.length) return; |
no test coverage detected