aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/LexSQL.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/LexSQL.cxx')
-rw-r--r--src/LexSQL.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/LexSQL.cxx b/src/LexSQL.cxx
index 83a22687e..facd0e6b7 100644
--- a/src/LexSQL.cxx
+++ b/src/LexSQL.cxx
@@ -50,7 +50,7 @@ static void ColouriseSQLDoc(unsigned int startPos, int length,
char chNext = styler[startPos];
styler.StartSegment(startPos);
unsigned int lengthDoc = startPos + length;
- for (unsigned int i = startPos; i <= lengthDoc; i++) {
+ for (unsigned int i = startPos; i < lengthDoc; i++) {
char ch = chNext;
chNext = styler.SafeGetCharAt(i + 1);