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

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd Grunke <toddgrun@microsoft.com>2017-03-22 21:40:30 +0300
committerTodd Grunke <toddgrun@microsoft.com>2017-03-22 21:40:30 +0300
commit12efac65681393691a4d645d788f3643bbd8830c (patch)
tree0185ec6857f59b1b599a18fe5155f878cf8f4edc /main/src/core/Mono.TextEditor.Shared/Mono.TextEditor/TextEditorData.cs
parent5903cc111d9a0735cc60e87057cd8f429bbd0ba3 (diff)
Fix for https://bugzilla.xamarin.com/show_bug.cgi?id=53679
Previously accidentally committed some submodule changes
Diffstat (limited to 'main/src/core/Mono.TextEditor.Shared/Mono.TextEditor/TextEditorData.cs')
-rw-r--r--main/src/core/Mono.TextEditor.Shared/Mono.TextEditor/TextEditorData.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/core/Mono.TextEditor.Shared/Mono.TextEditor/TextEditorData.cs b/main/src/core/Mono.TextEditor.Shared/Mono.TextEditor/TextEditorData.cs
index 1776e51703..5803696423 100644
--- a/main/src/core/Mono.TextEditor.Shared/Mono.TextEditor/TextEditorData.cs
+++ b/main/src/core/Mono.TextEditor.Shared/Mono.TextEditor/TextEditorData.cs
@@ -278,7 +278,7 @@ namespace Mono.TextEditor
{
caret.UpdateCaretPosition (e);
- if (Options.TabsToSpaces && document.IsTextSet) {
+ if (Options.TabsToSpaces && document.IsTextSet && !document.IsInUndo) {
string tabReplacement = new string (' ', Options.TabSize);
var newChanges = new List<Microsoft.CodeAnalysis.Text.TextChange> ();
foreach (var change in e.TextChanges) {