diff options
Diffstat (limited to 'src/Editor/Text/Impl/TextBufferUndoManager/TextBufferUndoManager.cs')
-rw-r--r-- | src/Editor/Text/Impl/TextBufferUndoManager/TextBufferUndoManager.cs | 2 |
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; |