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

Method deleteToLineStart

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

Source from the content-addressed store, hash-verified

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;

Callers 1

handleInputMethod · 0.95

Calls 2

pushUndoMethod · 0.95
pushMethod · 0.45

Tested by

no test coverage detected