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

Method exitHistoryBrowsing

packages/pi-tui/src/components/editor.ts:526–530  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

524 }
525
526 private exitHistoryBrowsing(): void {
527 this.historyIndex = -1;
528 this.historyDraft = null;
529 this.hostHistoryDraft = undefined;
530 }
531
532 /** Internal setText that doesn't reset history state - used by navigateHistory */
533 private setTextInternal(text: string, cursorPlacement: "start" | "end" = "end"): void {

Callers 14

setTextMethod · 0.95
insertTextAtCursorMethod · 0.95
insertCharacterMethod · 0.95
handlePasteMethod · 0.95
addNewLineMethod · 0.95
submitValueMethod · 0.95
handleBackspaceMethod · 0.95
deleteToStartOfLineMethod · 0.95
deleteToEndOfLineMethod · 0.95
deleteWordBackwardsMethod · 0.95
deleteWordForwardMethod · 0.95
handleForwardDeleteMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected