Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/vs-editor-api.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/Editor/Text/Impl/TextBufferUndoManager/TextBufferUndoManager.cs')
-rw-r--r--src/Editor/Text/Impl/TextBufferUndoManager/TextBufferUndoManager.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Editor/Text/Impl/TextBufferUndoManager/TextBufferUndoManager.cs b/src/Editor/Text/Impl/TextBufferUndoManager/TextBufferUndoManager.cs
index 646a47e..430046e 100644
--- a/src/Editor/Text/Impl/TextBufferUndoManager/TextBufferUndoManager.cs
+++ b/src/Editor/Text/Impl/TextBufferUndoManager/TextBufferUndoManager.cs
@@ -214,6 +214,8 @@ namespace Microsoft.VisualStudio.Text.BufferUndoManager.Implementation
public void Dispose()
{
+ UnregisterUndoHistory();
+
if (_textBuffer != null)
{
_textBuffer.PostChanged -= TextBufferPostChanged;