MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / clearFromMark

Function clearFromMark

src/lib/actionStack.js:139–143  ·  view source on GitHub ↗

* Remove all actions that are pushed after marked positions (using `setMark()`)

()

Source from the content-addressed store, hash-verified

137 * Remove all actions that are pushed after marked positions (using `setMark()`)
138 */
139 clearFromMark() {
140 if (mark === null) return;
141 stack.splice(mark);
142 mark = null;
143 },
144 freeze() {
145 freeze = true;
146 },

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected