Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
insertCharacter
Method · 0.95
handleBackspace
Method · 0.95
handleForwardDelete
Method · 0.95
deleteToLineStart
Method · 0.95
deleteToLineEnd
Method · 0.95
deleteWordBackwards
Method · 0.95
deleteWordForward
Method · 0.95
yank
Method · 0.95
yankPop
Method · 0.95
handlePaste
Method · 0.95
Calls
1
push
Method · 0.45
Tested by
no test coverage detected