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:
authorMike Krüger <mkrueger@xamarin.com>2016-07-07 20:15:28 +0300
committerMike Krüger <mkrueger@xamarin.com>2016-07-07 20:15:37 +0300
commitf52c026fefecbe8bdc747afee35cae5e4f505775 (patch)
tree8a33817dbbed7afed2b9fb2a09cde5ce5097b313 /main/src/core/Mono.Texteditor
parentf1ba863a492fd393d1bf61f1cc951941383fd615 (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.cs2
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;