diff options
-rw-r--r-- | main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorView.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorView.cs b/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorView.cs index d0aa9f3e62..924a2ab513 100644 --- a/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorView.cs +++ b/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorView.cs @@ -2592,6 +2592,8 @@ namespace MonoDevelop.SourceEditor }; } + var undoOperation = TextEditor.OpenUndoGroup (); + tle.Exited += (object sender, EventArgs e) => undoOperation.Dispose (); tle.StartMode (); TextEditor.CurrentMode = tle; } |