diff options
author | Mike Krüger <mkrueger@xamarin.com> | 2016-07-07 20:15:28 +0300 |
---|---|---|
committer | Mike Krüger <mkrueger@xamarin.com> | 2016-07-07 20:15:37 +0300 |
commit | f52c026fefecbe8bdc747afee35cae5e4f505775 (patch) | |
tree | 8a33817dbbed7afed2b9fb2a09cde5ce5097b313 /main/src/core/Mono.Texteditor | |
parent | f1ba863a492fd393d1bf61f1cc951941383fd615 (diff) |
[TextEditor] Fixed bug in syntax highlighting.
Diffstat (limited to 'main/src/core/Mono.Texteditor')
-rw-r--r-- | main/src/core/Mono.Texteditor/Mono.TextEditor.Highlighting/SyntaxMode.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/core/Mono.Texteditor/Mono.TextEditor.Highlighting/SyntaxMode.cs b/main/src/core/Mono.Texteditor/Mono.TextEditor.Highlighting/SyntaxMode.cs index 6f2c672337..2d0f2cea6b 100644 --- a/main/src/core/Mono.Texteditor/Mono.TextEditor.Highlighting/SyntaxMode.cs +++ b/main/src/core/Mono.Texteditor/Mono.TextEditor.Highlighting/SyntaxMode.cs @@ -160,7 +160,7 @@ namespace Mono.TextEditor.Highlighting yield break; } } - while (result.Next != null && result.Offset < minOffset) { + while (result.Next != null && result.EndOffset < minOffset) { result = result.Next; } minOffset = result.Offset + result.Length; |