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

Method undo

packages/core/src/widgets/codeEditor.ts:534–540  ·  view source on GitHub ↗

Pop and return the last undoable action.

()

Source from the content-addressed store, hash-verified

532
533 /** Pop and return the last undoable action. */
534 undo(): EditAction | null {
535 const action = this.undoStack.pop();
536 if (action) {
537 this.redoStack.push(action);
538 }
539 return action ?? null;
540 }
541
542 /** Pop and return the last redoable action. */
543 redo(): EditAction | null {

Callers 1

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected