()
| 257 | } |
| 258 | |
| 259 | private deleteToLineEnd(): void { |
| 260 | if (this.cursor >= this.value.length) return; |
| 261 | this.pushUndo(); |
| 262 | const deletedText = this.value.slice(this.cursor); |
| 263 | this.killRing.push(deletedText, { prepend: false, accumulate: this.lastAction === "kill" }); |
| 264 | this.lastAction = "kill"; |
| 265 | this.value = this.value.slice(0, this.cursor); |
| 266 | } |
| 267 | |
| 268 | private deleteWordBackwards(): void { |
| 269 | if (this.cursor === 0) return; |
no test coverage detected