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

Method undo

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

Source from the content-addressed store, hash-verified

340 }
341
342 private undo(): void {
343 const snapshot = this.undoStack.pop();
344 if (!snapshot) return;
345 this.value = snapshot.value;
346 this.cursor = snapshot.cursor;
347 this.lastAction = null;
348 }
349
350 private moveWordBackwards(): void {
351 if (this.cursor === 0) return;

Callers 1

handleInputMethod · 0.95

Calls 1

popMethod · 0.80

Tested by

no test coverage detected