MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / deleteToLineEnd

Method deleteToLineEnd

packages/pi-tui/src/components/input.ts:259–266  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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;

Callers 1

handleInputMethod · 0.95

Calls 2

pushUndoMethod · 0.95
pushMethod · 0.45

Tested by

no test coverage detected