public void Undo()
{
if (Document.ReadOnly) {
return;
}
if (Document.UndoStack.CanUndo) {
BeginUpdate();
Document.UndoStack.Undo();
Document.RequestUpdate(new TextAreaUpdate(TextAreaUpdateType.WholeTextArea));
this.primaryTextArea.TextArea.UpdateMatchingBracket();
if (secondaryTextArea != null) {
this.secondaryTextArea.TextArea.UpdateMatchingBracket();
}
EndUpdate();
}
}