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

Method PerformUndoStep

scintilla/src/CellBuffer.cxx:743–751  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

741}
742
743void CellBuffer::PerformUndoStep() {
744 const Action &actionStep = uh.GetUndoStep();
745 if (actionStep.at == insertAction) {
746 BasicDeleteChars(actionStep.position, actionStep.lenData);
747 } else if (actionStep.at == removeAction) {
748 BasicInsertString(actionStep.position, actionStep.data, actionStep.lenData);
749 }
750 uh.CompletedUndoStep();
751}
752
753bool CellBuffer::CanRedo() {
754 return uh.CanRedo();

Callers 1

UndoMethod · 0.80

Calls 1

CompletedUndoStepMethod · 0.80

Tested by

no test coverage detected