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

Method pushUndo

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

Source from the content-addressed store, hash-verified

336 }
337
338 private pushUndo(): void {
339 this.undoStack.push({ value: this.value, cursor: this.cursor });
340 }
341
342 private undo(): void {
343 const snapshot = this.undoStack.pop();

Callers 10

insertCharacterMethod · 0.95
handleBackspaceMethod · 0.95
handleForwardDeleteMethod · 0.95
deleteToLineStartMethod · 0.95
deleteToLineEndMethod · 0.95
deleteWordBackwardsMethod · 0.95
deleteWordForwardMethod · 0.95
yankMethod · 0.95
yankPopMethod · 0.95
handlePasteMethod · 0.95

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected