MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / undoSnapshot

Method undoSnapshot

packages/core/src/runtime/inputEditor.ts:556–561  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

554 }
555
556 undoSnapshot(): InputEditorSnapshot | null {
557 const entry = this.undo.pop();
558 if (!entry) return null;
559 this.redo.push(entry);
560 return entry.before;
561 }
562
563 redoSnapshot(): InputEditorSnapshot | null {
564 const entry = this.redo.pop();

Callers 2

routeInputEditingEventFunction · 0.80

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected