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:
authorDavid Karlaš <david.karlas@xamarin.com>2016-08-26 09:53:56 +0300
committerDavid Karlaš <david.karlas@xamarin.com>2016-08-26 10:20:14 +0300
commitf01325524a56d6f0efa55b35d24869a90da760e8 (patch)
treee9be4161581771175ef8845103fe78c1ccc88463
parent5ce8e6ddb743bec156693c26091c44ccd79cde68 (diff)
[Mono.Texteditor] Fixed wrong variable being assigned witch resulted in very imbalanced tail vs. head sizes
-rw-r--r--main/src/core/Mono.Texteditor/Mono.TextEditor.Utils/ImmutableText.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/core/Mono.Texteditor/Mono.TextEditor.Utils/ImmutableText.cs b/main/src/core/Mono.Texteditor/Mono.TextEditor.Utils/ImmutableText.cs
index b463fd79a4..5ffc650230 100644
--- a/main/src/core/Mono.Texteditor/Mono.TextEditor.Utils/ImmutableText.cs
+++ b/main/src/core/Mono.Texteditor/Mono.TextEditor.Utils/ImmutableText.cs
@@ -425,7 +425,7 @@ namespace Mono.TextEditor.Utils
// head too small, returns (head + tail/2) + (tail/2)
if (compositeTail.head.Length > compositeTail.tail.Length) {
// Rotates to concatenate with smaller part.
- tail = compositeTail.RotateRight ();
+ compositeTail = (CompositeNode)compositeTail.RotateRight ();
}
head = ConcatNodes (head, compositeTail.head);
tail = compositeTail.tail;
@@ -435,7 +435,7 @@ namespace Mono.TextEditor.Utils
// tail too small, returns (head/2) + (head/2 concat tail)
if (compositeHead.tail.Length > compositeHead.head.Length) {
// Rotates to concatenate with smaller part.
- head = compositeHead.RotateLeft ();
+ compositeHead = (CompositeNode)compositeHead.RotateLeft ();
}
tail = ConcatNodes (compositeHead.tail, tail);
head = compositeHead.head;