| 741 | } |
| 742 | |
| 743 | void 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 | |
| 753 | bool CellBuffer::CanRedo() { |
| 754 | return uh.CanRedo(); |