diff options
author | Mike Krüger <mkrueger@xamarin.com> | 2016-05-11 13:53:00 +0300 |
---|---|---|
committer | Mike Krüger <mkrueger@xamarin.com> | 2016-05-17 17:12:57 +0300 |
commit | c019ca0ff5cccb8fde4eff0d27a2d616ca8182b2 (patch) | |
tree | fcff2f55b0816af8236afac3eaf8577e44fab091 /main/src/core/MonoDevelop.TextEditor.Tests/Mono.TextEditor.Tests/FoldingTests.cs | |
parent | 71bfe9da43df99975fa293ffac49fe702d8cc88a (diff) |
[SourceEditor] Unified text document subsystems.
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 | 2 |
1 files changed, 1 insertions, 1 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 f2ab1d7c74..44b6b769d6 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 @@ -75,7 +75,7 @@ namespace Mono.TextEditor.Tests List<FoldSegment> result = new List<FoldSegment> (); Stack<FoldSegment> foldSegments = new Stack<FoldSegment> (); - for (int i = 0; i < doc.TextLength - 1; ++i) { + for (int i = 0; i < doc.Length - 1; ++i) { char ch = doc.GetCharAt (i); if ((ch == '+' || ch == '-') && doc.GetCharAt(i + 1) == '[') { |