MCPcopy Create free account
hub / github.com/ProgerXP/Notepad2e / StartRedo

Method StartRedo

scintilla/src/CellBuffer.cxx:318–329  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

316}
317
318int UndoHistory::StartRedo() {
319 // Drop any leading startAction
320 if (actions[currentAction].at == startAction && currentAction < maxAction)
321 currentAction++;
322
323 // Count the steps in this action
324 int act = currentAction;
325 while (actions[act].at != startAction && act < maxAction) {
326 act++;
327 }
328 return act - currentAction;
329}
330
331const Action &UndoHistory::GetRedoStep() const {
332 return actions[currentAction];

Callers 1

RedoMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected