MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / doRedo

Method doRedo

tools/xsbug/behaviors.js:95–104  ·  view source on GitHub ↗
(code)

Source from the content-addressed store, hash-verified

93 this.onReveal(code);
94 }
95 doRedo(code) {
96 this.historyIndex++;
97 var state = this.history[this.historyIndex];
98 code.string = state.string;
99 code.select(state.selectionOffset, state.selectionLength);
100 this.insertionOffset = -1;
101 this.onEdited(code);
102 this.onSelected(code);
103 this.onReveal(code);
104 }
105 doSelectAll(code) {
106 code.select(0, code.length);
107 this.onSelected(code);

Callers

nothing calls this directly

Calls 4

onEditedMethod · 0.95
onSelectedMethod · 0.95
onRevealMethod · 0.95
selectMethod · 0.45

Tested by

no test coverage detected