diff options
author | Mike Krüger <mkrueger@xamarin.com> | 2016-10-26 15:42:17 +0300 |
---|---|---|
committer | Mike Krüger <mkrueger@xamarin.com> | 2016-10-26 15:42:17 +0300 |
commit | 4458a0a104992a2c290af13bb06ed76a03ade84b (patch) | |
tree | 73bd85eb3a54265592b1f390064e5bb774f29e35 /main/src/core/MonoDevelop.TextEditor.Tests/Mono.TextEditor.Tests/FoldingTests.cs | |
parent | c6e9aa6a36c065fd5f26d2aa2835726ab9194565 (diff) |
[SourceEditor] Optimized folding data structure.
Fixes a potential updating problem as well.
Diffstat (limited to 'main/src/core/MonoDevelop.TextEditor.Tests/Mono.TextEditor.Tests/FoldingTests.cs')
-rw-r--r-- | main/src/core/MonoDevelop.TextEditor.Tests/Mono.TextEditor.Tests/FoldingTests.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/core/MonoDevelop.TextEditor.Tests/Mono.TextEditor.Tests/FoldingTests.cs b/main/src/core/MonoDevelop.TextEditor.Tests/Mono.TextEditor.Tests/FoldingTests.cs index 8522319691..f183efd829 100644 --- a/main/src/core/MonoDevelop.TextEditor.Tests/Mono.TextEditor.Tests/FoldingTests.cs +++ b/main/src/core/MonoDevelop.TextEditor.Tests/Mono.TextEditor.Tests/FoldingTests.cs @@ -1,4 +1,4 @@ -// +// // FoldingTests.cs // // Author: @@ -79,7 +79,7 @@ namespace Mono.TextEditor.Tests char ch = doc.GetCharAt (i); if ((ch == '+' || ch == '-') && doc.GetCharAt(i + 1) == '[') { - FoldSegment segment = new FoldSegment (doc, "...", i, 0, FoldingType.Unknown); + FoldSegment segment = new FoldSegment ("...", i, 0, FoldingType.Unknown); segment.IsCollapsed = ch == '+'; foldSegments.Push (segment); } else if (ch == ']' && foldSegments.Count > 0) { |